May 2019
Intermediate to advanced
542 pages
13h 37m
English
If you have access to a server that accepts POST requests and file uploads, you can certainly use that to test your script; if not, you can also use the sample_http_server.py script included with the example code for this chapter. This script requires only Python 3 and the standard library and will echo back your POST request to you.
Launch the server script in a console window, then in a second console run your poster.py script and do the following:
You should see a printout of your request in both the server console ...
Read now
Unlock full access