magnusvp magnusvp - 1 month ago 8
HTML Question

How to figure out what a POST request should contain given html page?

I am trying to write a Python script that queries this online database:
http://www.astro.uni-koeln.de/cgi-bin/cdmssearch

Since they don't use the more simple to figure out GET request, I don't know how to figure out the necessary information (key-value pairs? header?) to put in a Python POST request.

Is there a tool to figure this out? I tried using Google Chrome Dev Tools, but I have no idea where to even start.

Any help is appreciated.

Answer

See the self-explainig screenhot on POST request taken at Chrome web dev. tools. Key/value pairs are in payload. enter image description here

Having more questions, feel free to ask.