spyoungtech / grequests

Requests + Gevent = <3
https://pypi.python.org/pypi/grequests
BSD 2-Clause "Simplified" License
4.49k stars 331 forks source link

when use the GET method, should return the real url #129

Closed Alexcn closed 5 years ago

Alexcn commented 6 years ago

like below:

a_tt = grequests.get('https://www.geektop.net', params={'1': 123})

when I call send(), the a_tt.url should return https://www.geektop.net/?1=123, rather than https://www.geektop.net

Alexcn commented 6 years ago

This project has dated?

spyoungtech commented 5 years ago

grequests.get returns an AsyncRequest object. It merely stores the parameters given to it. You should be able to call send multiple times and get the same effect. Suppose the response redirects elsewhere? Doesn't seem appropriate to set response url like this. You can get it if you need to easy enough by a_tt.response.url