Re: fsocketopen not returning data properly

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

 



On 6/19/07, Dan <frozendice@xxxxxxxxx> wrote:
I'm having trouble with sockets in PHP, if anyone has the time to help out
that would be awesome.
I am trying to get the result of a post

There are a lot of people that are probably willing to help, but what
is your exact problem?


echo httpSocketConnection("www.google.com", "POST", "/search", "q=test",
"80");

This should post to google.com with a query of test.  Then give me the
response.  The function I'm using is below.

Google doesn't wants a POST request, make it a GET request and it should work.


Here's the function's code:

<snip>

You copied this straight from the web? If so, then there are probably
no bugs in it.

Tijnema

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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