-
-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting redirected only when using Excon, not with other HTTP clients #531
Comments
Maybe it has something to do with compression I tried using the Decompress middleware: require "excon"
middlewares = Excon.defaults[:middlewares] + [Excon::Middleware::RedirectFollower] + [Excon::Middleware::Decompress]
connection = Excon.new(url, middlewares: middlewares)
url = "http://defensacentral.com/rss/rss.php?sec=0"
connection.get.status and I got
|
I spotted that Typhoeus had |
It probably has to do with excon including default ports. You can try with |
Yes, that works 😄 Thanks. I'll close this as there are other issues discussing the |
Sounds good, sorry about the inconvenience, but glad it was an easy fix. |
I get redirected when using excon to get the following url:
http://defensacentral.com/rss/rss.php?sec=0
. When using typhoeus ornet/http
(or a browser) the server responds with status 200.I tried to figure out what excon is doing differently compared to the other http clients, but I cannot find the cause behind this.
The url above is the only one where I have noticed this behaviour, but maby there are more.
Example:
The text was updated successfully, but these errors were encountered: