You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a webserver at https://some.service.com which returns HTTP 301 with a header Location: https,https://some.service.com/foo/bar/baz (no idea if this is a reasonable thing for a webserver to do, but I am seeing this on an internal service) when you attempt to access https://some.service.com/foo/bar/baz and an HttpSession with a base_url of https://some.service.com (e.g., the client property on a TaskSet), when I invoke post("/foo/bar/baz"), I get Cannot GET /foo/bar/https,https://some.service.com/foo/bar/baz. When I check the response.request.url, I see it is https://some.service.com/foo/bar/https,https://some.service.com/foo/bar/baz. If I hit the same service with requests, the redirect is handled correctly.
A couple of strange things here--the POST is being turned into a GET and the odd URL mangling/concatenation.
Never mind. I further debugged this issue, and it looks like I was passing a subtly different URL to requests than to Locust. Requests does the same thing.
Given a webserver at
https://some.service.com
which returns HTTP 301 with a headerLocation: https,https://some.service.com/foo/bar/baz
(no idea if this is a reasonable thing for a webserver to do, but I am seeing this on an internal service) when you attempt to accesshttps://some.service.com/foo/bar/baz
and anHttpSession
with abase_url
ofhttps://some.service.com
(e.g., theclient
property on aTaskSet
), when I invokepost("/foo/bar/baz")
, I getCannot GET /foo/bar/https,https://some.service.com/foo/bar/baz
. When I check theresponse.request.url
, I see it ishttps://some.service.com/foo/bar/https,https://some.service.com/foo/bar/baz
. If I hit the same service withrequests
, the redirect is handled correctly.A couple of strange things here--the POST is being turned into a GET and the odd URL mangling/concatenation.
locustio version: 0.7.5
requests version: 2.14.1
python version: 2.7.13
The text was updated successfully, but these errors were encountered: