Posted by Manuel Lemos on 12/16/74 11:59
Hello,
on 09/27/2006 12:56 PM webEater said the following:
> I am writing a file that reads in an external file in the web and
> prints it out including the response header of the http protocol. I do
> this to enable cross domain XMLHttpRequests.
> I implemented it via fsockopen, like this:
I think you should not send headers that your HTTP client is not capable
of understanding.
Anyway, instead of reinventing the wheel, you may want to try this
proven HTTP client class:
http://www.phpclasses.org/httpclient
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
[Back to original message]
|