servlets - Reading a POST payload from a G-Wan C Script -


i understand reading actual query string params made easy get_arg function. however, not seeing in examples or documentation let me read post payload. in case, it's json encoded string. parsing json easy enough once can address it.

does have example shows how read raw post payload in c?

found answer walking argv[]. turns out it's easy as:

char *raw_payload = (char*)argv[0]; 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -