php - $_POST is empty even though CONTENT_LENGTH is correct -


i've got http post pointed @ 2 different places.

the first location handled thirdparty solution, can't see how they're handling data (which must because values getting through , i'm seeing results).

in my location, have nginx server (which has never had problems before lots of use). using php read post data, , expect content in $_post variable post $_server["content_type"] => "multipart/form-data"

but, though type , $_server["content_length"] correct, i'm getting nothing in $_post, $_request, , when checking file_get_contents('php://input') there nothing inside either.

the body small json lump (<1k). array of objects.

to see what's in arrays used echo json_encode( array( "get" => $_get, "post" => $_post, "request" => $_request, "server" => $_server ) )

i've run out of ideas of check now.

the entry $_server["php_self"] has strange garbling possibly due path delimiters?

how post json php curl lead me solution:

don’t forget send application/json

once did that, data came through in body. helps me, i'm still curious why third party receiver can handle data was.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -