Hi Everyone! I have the HTTP reference book. Honestly, I don't know a lot about HTTP language or protocol. I am supposely to write the HTTP script to connect to the one of hte machine on the internet, then use authentication, then send data and receive data, then close the connection. It is a pretty basic thing. But I noticed it doesn't work at all. I can write it in PHP using hte PHP Header. But the truth is it doesn't do anything. So, I am lead to believe that it meant I'm not finish with hte script.
So, anyone where can I find a good documentation on using HTTP in PHP and making it work? I looked around on the internet and it isn't very reliable. I checked out the book stores and no luck. I appreciate all of the help I can get on programming HTTP in PHP. Here's the HTTP script in PHP and not a bad start for a HTTP beginner. -- demo script -- $eq_one = "10xxx"; $eq_two = "test"; $eq_three = "DIAL999Z IDNT 99xxxM3 J02"; $post_string_len = strlen("site_id=".$eq_one."&service_name=".$eq_two."&efx_request=".$eq_three ); header("POST eq_test.php HTTP/1.1"); header("Content-Transfer-Encoding: base64"); header("Content-Location: http://transport5.ec.equifax.com/servlet/stspost"); header("Authorization: basic 10xxx:trwdwdxxxxxx"); // header("Content-type: application/x-www-form-urlencoded"); header("Content-length: $post_string_len"); header("site_id=$eq_one&service_name=$eq_two&efx_request=$eq_three"); echo "<html><head>"; echo "<meta http-equiv='Content-Type' content='application/x-www-form-urlencoded'>"; echo "</head><body>Testing!</body></html>"; -- demo script end -- Thanks! Scott P.S. Just any helpful information will be useful. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]