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
Post a Comment