HTTP POST REQUEST using python -


this question has answer here:

i've web server setup in separate location , wanted access remotely using http post request. can please guide me how proceed it. need use python runs http post request , modifies contents of web page

although not particularly practical, use socket. script on server receives post request have modify desired web pages content upon receipt.

import socket  sock = socket.socket() sock.connect(('server_domainname.com', 80)) sock.sendall(b'post / http/1.1\r\nhost: server_domainname.com:80\r\n\r\n') 

Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -