Python Send File Requests, The post() method is used when you want to send some data to the server.