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

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -