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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -