简体   繁体   中英

Sniffing received HTTP post packets with python

I am trying to manage some HTTP Post requests being received on my computer. The post requests are from an apache server (website) which is being hosted on the same computer . How can I manage them using python , preferably without using any 3rd party modules ?

If it is very lightweight and does not require many things, you can use the built-in socket module and create a server yourself ( https://docs.python.org/3/library/socket.html ). If it requires things like security then Flask or Django would be a good choice ( https://flask.palletsprojects.com/en/1.1.x/ ) ( https://www.djangoproject.com/ ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM