Re: HTTP problem, wrong characters sent (HTTP pro's needed!)



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/
.



Relevant Pages

  • Re: PHP Header Refresh Issue
    ... > There's no such header in HTTP. ... It's a response header on which the browser will act in ...
    (comp.lang.php)
  • Re: HTTP Download
    ... It is easy to download a file via HTTP once you know the file name. ... all - do you want an HTTP client to be able to enumerate the directory, ...
    (microsoft.public.vc.language)
  • Re: Socket problem ?
    ... Flo wrote: ... > I want to write in C an HTTP client in order to download a web page. ...
    (comp.os.linux.development.apps)
  • Re: Find default web page of a directory
    ... Are you suggesting one cannot ... implement an HTTP client in C++? ... but server side information is not known via HTTP. ...
    (microsoft.public.vc.language)
  • Re: access HTTP payload in Java
    ... if you are writing an HTTP client, try using the jakarta commons http client ... Is my expectation correct?? ...
    (comp.lang.java.programmer)