We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
python version: 3.4.3 aiohttp==0.17.1
Hi, the post method is broken because it can't include data parameter, here is my test code and result:
post
data
import asyncio import aiohttp url = 'http://127.0.0.1:1234' data = {'a': '11111'} loop = asyncio.get_event_loop() loop.run_until_complete(asyncio.wait([aiohttp.post(url, data=data)]))
Result(using nc -l 1234):
nc -l 1234
POST / HTTP/1.1 ACCEPT: */* ACCEPT-ENCODING: gzip, deflate HOST: 127.0.0.1:1234 CONTENT-LENGTH: 0 CONTENT-TYPE: application/octet-stream CONNECTION: keep-alive USER-AGENT: Python/3.4 aiohttp/0.17.1
if I use request instead of post, the result is OK:
request
POST / HTTP/1.1 ACCEPT: */* ACCEPT-ENCODING: gzip, deflate HOST: 127.0.0.1:1234 CONTENT-TYPE: application/x-www-form-urlencoded CONTENT-LENGTH: 7 CONNECTION: keep-alive USER-AGENT: Python/3.4 aiohttp/0.17.1 a=11111
The text was updated successfully, but these errors were encountered:
I guess put, delete and patch are broken as well. data argument eventually forgot to be passed forward.
put
delete
patch
Sorry, something went wrong.
#461: Don't forget to pass data argument forward
d7ed386
Fixed. Will be published as part of 0.17.2
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
If you feel like there's important points made in this discussion, please include those exceprts into that new issue.
No branches or pull requests
python version: 3.4.3
aiohttp==0.17.1
Hi, the
post
method is broken because it can't includedata
parameter, here is my test code and result:Result(using
nc -l 1234
):if I use
request
instead ofpost
, the result is OK:The text was updated successfully, but these errors were encountered: