PHP Post data with Fsockopen

前端 未结 10 1530
梦如初夏
梦如初夏 2020-12-01 15:20

I am attempting to post data using fsockopen, and then returning the result. Here is my current code:



        
10条回答
  •  时光取名叫无心
    2020-12-01 15:31

    Try this in reposter.php

    $raw_data = $GLOBALS['HTTP_RAW_POST_DATA']; 
    parse_str( $raw_data, $_POST );
    
    print_r( $_POST );
    

    Because, the data wasn't in the $_POST[] variables but it was in the $GLOBALS['HTTP_RAW_POST_DATA'] variable.

提交回复
热议问题