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
Post a Comment