I am trying to figure out how to build a post string, and then user
header
to post it. I've done some research and I am not getting very far.
Basically what I'm doing is taking POST items, then validating them,
scrubbing them, and rebuidling the post string and trying to
resubmitt it
using headers(). I'm getting this error:
ErrorCGI ErrorThe specified CGI application misbehaved by not
returning a
complete set of HTTP headers.
Here is my header code, and the post string below it. I don't have
any idea
what I'm missing or doing wrong. Any help is appreciated!
header( "POST /v2/order_submitorder.php HTTP/1.0" );
header( "Host: new.vtusa.com" );
header( "Content-Type: application/x-www-form-urlencoded" );
header( "Content-Length: " . strlen( $post_string ) );
header( $post_string );