-
Notifications
You must be signed in to change notification settings - Fork 77
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
Http Request sends wrong HTTP ? #30
Comments
I investigated issues related to Http Request.
Actual result:
Fixed method for OPTIONS added into init.py: def OPTIONS(self, url):
path = self._path_from_url_or_path(url)
self.context.pre_process_request()
logger.debug("Performing OPTIONS request on %s://%s%s" % (
self.context._scheme, self.app.host, path))
self.context.post_process_request(
self.app.options(path, self.context.request_headers)
) |
Any updates here? |
Hello,
I have done the following tests (with httplibrary 0.4.2). Both should return the same response, but the GET answer is a HTTP status 302 (as expected), while the Http Request answer is 400:
I ran into Wireshark to look at the sent requests, and it seems (not sure as I am not familiar with wireshark) that Facebook feels angry because when using the "Http Request" keyword, the Host header is set to localhost:80 instead of www.facebook.com.
I got this bug because originally, I had a problem with https requests: here again, I am not sure, but it seems that the "Http Request" keyword always use the http scheme, even if I set it to https with a call to "Create Http Context".
The text was updated successfully, but these errors were encountered: