[PHP] Re: Sending data via POST

2005-03-11 Thread Todd Cary
Shawn - Many thanks! I have a class I wrote that does that, but I thought I may have overlooked something simplier. Todd Shawn Kelly wrote: This is from php.net: Just change the $out to fill with your POST request (instead of the GET). Works good, you can change ports. :) |$fp = fsockopen("w

[PHP] Re: Sending data via POST

2005-03-11 Thread Shawn Kelly
This is from php.net: Just change the $out to fill with your POST request (instead of the GET).  Works good, you can change ports. :)   $fp = fsockopen("www.example.com", 80, $errno, $errstr, 30);if (!$fp) {   echo "$errstr ($errno)\n";} else {   $out = "GET / HTTP/1.1\r\n";   $out .= "Host: