Re: [PHP] HTTP_POST Intermittent Problem

2004-08-26 Thread Jeff Oien
Matt M. wrote: can you use PEAR? There is already a bunch of http packages http://pear.php.net/package-search.php?pkg_name=http&bool=AND&submit=Search I've taken a look at that and don't know the first thing about how to implement or use it. Are there any tutorials out there? Plus, I don't know i

Re: [PHP] HTTP_POST Intermittent Problem

2004-08-26 Thread Jeff Oien
Jay Blanchard wrote: [snip] I'm using the code below and about a third of the posts aren't getting through. We have no idea why and don't know where to start to trouble shoot. Any ideas? Thanks. [/snip] Have you checked the http access and error logs? On their end? Yes they can see each attempt

RE: [PHP] HTTP_POST Intermittent Problem

2004-08-26 Thread Jay Blanchard
[snip] I'm using the code below and about a third of the posts aren't getting through. We have no idea why and don't know where to start to trouble shoot. Any ideas? Thanks. [/snip] Have you checked the http access and error logs? -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] HTTP_POST Intermittent Problem

2004-08-26 Thread Matt M.
> function http_post($host, $path, $data) > { > $http_response = ''; > $content_length = strlen($data); > > $fp = fsockopen($host, 80); > fputs($fp, "POST $path HTTP/1.1\r\n"); > fputs($fp, "Host: $host\r\n"); > fputs($fp, "Content-Type: application/x-www-form-u