Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

HTTP 400 on some URIs (but works ok with http.request) #404

Closed
umutm opened this Issue Jan 3, 2013 · 1 comment

Comments

Projects
None yet
1 participant

umutm commented Jan 3, 2013

I'm sending GET and/or HEAD requests and facing an interesting issue.

For some URIs, I get HTTP 400 Bad Request but if I try the same with the default http.request, they return HTTP 200.

Here are the sample codes:

I'm using the same headers on both, actually no differences at all.

Tried sniffing with Wireshark but I only get HTTP 400 Bad Request with no clue on the reason.

Any ideas?

umutm commented Jan 3, 2013

Sorry that this was my fault missing to send the headers the right way the module needed.

Just realized and it works ok.

@umutm umutm closed this Jan 3, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment