-
Notifications
You must be signed in to change notification settings - Fork 3.2k
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Problem with redirect handling #26
Comments
Can you verify that you're not POSTing or PUTing to the destination responding with the 302? |
I am not POSTING or PUTing. |
Well, firstly this seems like a 301 Redirrect to me
And, it seems like it isn't redirecting to the Google Homepage, but to
It seems to work
Try to update your copy of Request.. |
I get an exception when I try to visit http://google.com, here's my output:
Seems redirect-related but the strange thing is that some redirects succeed while others fail. |
I'm 99% sure this is fixed now. |
var request = require('request');
request({uri:'http://plixi.com/p/95010942'}, function (error, response, body) {
console.log(error);
console.log(response.statusCode);
if (!error && response.statusCode == 200) {
sys.puts(body) // Print the google web page.
}
})
plixi works via 302 redirect:
curl -v 'http://plixi.com/p/95243438' darwin-2.6
< Date: Sun, 24 Apr 2011 22:01:15 GMT
< Server: Apache/2.2.3 (Red Hat)
< X-Powered-By: PHP/5.2.14
< Location: http://m.plixi.com/p/95243438
< Vary: Accept-Encoding
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
<
Somewhere something is going wrong with redirect handling...
The text was updated successfully, but these errors were encountered: