php - $_POST not populated -
i'm having issues php rest api of app.
i'm submitting parameters in correct url format: baseurl?param1=val1¶m2=val2
however, parameters being filled $_get
array instead. i've looked $_server
array see if there wrong there, can't see obvious.
$_server['content_type']="application/x-www-form-urlencoded" $_server['request_method']="post"
i've checked php.ini post_max_size
misconfig:
post_max_size=32m
i'm not able figure else cause parameters placed $_get
if helps, i'm using xampp on windows.
also, using "advanced rest client" chrome, i've noticed regardless of method, post parameters placed $_get
if parameters in url, if move them rest client's payload field, show post parameters.
you cannot parameters via $_post
submitted in query-string. can them via $_get
array.
but if move them rest client's payload field, show post parameters.
, seeing trouble, can them $_request
Comments
Post a Comment