python 3.x - Python3 Asyncio HTTP Server: StreamReader Get Uploaded File -


how can file uploaded server using asyncio.start_server? sent file using curl command:

curl -i -x post -h "content-type: multipart/form-data" -f "data=@server.py" http://localhost:8888 

and result of stremreader is:

post / http/1.1\r\nuser-agent: curl/7.35.0\r\nhost: localhost:8888\r\naccept: */*\r\ncontent-length: 7673\r\nexpect: 100-continue\r\ncontent-type: multipart/form-data; boundary=------------------------ea4b0f3e04ac89ad\r\n\r\n 

my source code: https://github.com/carlosmaniero/asyncio_server/blob/master/server.py.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -