Header() - POST

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone,

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 );

Quote Management System
v3.00.0903PCompanyName=&PFirstName=Dan&PLastName=Joseph&PAddress1=123
Street&PAddress2=&PCity=Northville&PState=MI&PZipCode=48167&PEmailAddress=
djoseph@xxxxxxxxxxxxxx&PPhone=2485551212&PCellPhone=2485521212&PFax=&OFirstName=Jack&OLastName=Mother&OAddress1=456
Avenue&OAddress2=&OCity=Omaha&OState=Ne&OZipCode=68101&OPhone=248889999&OCellPhone=2487889999&DFirstName=Yohan&DLastName=Jacques&DAddress1=789
Boulevard&DAddress2=&DCity=Northville&DState=Mi&DZipCode=48167&DPhone=5867772222&DCellPhone=5866772222&VehicleVIN=1234567890ABCDEFG&VehicleYear=2007&VehicleMake=Honda&VehicleModel=Civic&VehicleColor=Grey&VehicleMiles=234234&ordersubmit=Submit
Order&UserID=90&QuoteID=427

-- 
-Dan Joseph

www.canishosting.com - Plans start @ $1.99/month.

"Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life."

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux