PHP - Investigate HTTP content from supplier -


i have asked supplier send orders (pdfs) via http rather email delivery unable tell me http query comprise of. know bad form, nonetheless try find solution. have provied php url them , being called when place order, not sure how scrutinise call server try find out need. moment getting 500 server error me.

this code have. being called , handle being updated, date being posted there nothing else.

<?  $handle = fopen("landstore.txt", "w");  if (isset($_post))  {  fwrite($handle, date("y-m-d h:i:s")); fwrite($handle, "\r\n"); foreach ($_post $key => $value)  {     fwrite($handle, $key." post =");     fwrite($handle, $value.",  ");         } fwrite($handle, "\r\n"); }  if (isset($_files)) {  fwrite($handle, date("y-m-d h:i:s")); fwrite($handle, "\r\n"); foreach ($_files $key => $value)  {     fwrite($handle, $key." post =");     fwrite($handle, $value.",  ");     } fwrite($handle, "\r\n"); }  if (isset($_get))   {  fwrite($handle, date("y-m-d h:i:s")); fwrite($handle, "\r\n"); foreach ($_get $key => $value)  {     fwrite($handle, $key." post =");     fwrite($handle, $value.",  ");     } fwrite($handle, "\r\n"); }  fclose($handle);  ?> 

how can improve on code gather meaningful results sending server? thanks.

i'd recommend third-party service called runscope - https://www.runscope.com/. there's free tier, , give url that'll record every post/get/etc. request made against inspect.

i'm unaffiliated have used them in past sort of thing.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -