Re: socket communication programming
| From: | Manuel Lemos | Date: | Sat, 13 Jun 2009 20:28:34 +0000 |
| Subject: | Re: socket communication programming | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-294024@lists.php.net to get a copy of this message | ||
Hello,
on 06/12/2009 11:41 AM HELP! said the following:
> hi
> I can not get the stream_get_contents() to work. it's returning empty.
> If you have a login details "ALOGINPASS 1A" cant you just fwrite($ft,
> "ALOGINPASS 1A"); or do you need to add other things
>
>
> what is the meaning of this string" GET / HTTP/1.0\r\nHost:
> www.example.com\r\nAccept
> <http://www.example.com/r/nAccept>: */*\r\n\r\n"
If that is regular HTTP, why don't you try an HTTP client class that
lets you customize your request parameters like this one?
http://www.phpclasses.org/httpclient
--
Regards,
Manuel Lemos
Find and post PHP jobs
http://www.phpclasses.org/jobs/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/