I figured it out, so these 2 web servers refuse my connection if I don't
have appropriate User-Agent and Accept headers, thanks a lot for the
help
Jay
On Wed, 2008-06-04 at 07:15 +0000, Eric Cantonna wrote:
> Personnaly, I use wireshark (free tool) to check this kind of problem.
>
> Or you can just try with the code below. It is the code I use to mimic the
> Opera browser.
> (Change the accept-encoding header to the commented one if your code doesn't
> handle gzip streams etc)
>
>
> method.addRequestHeader("User-Agent", "Opera/9.25 (Windows NT 5.1; U;
> en)");
> method.addRequestHeader("Accept" ,"text/html, application/xml;q=0.9,
> application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap,
> */*;q=0.1");
> method.addRequestHeader("Accept-Language", "fr-LU,fr;q=0.9,en;q=0.8");
> method.addRequestHeader("Accept-Charset", "iso-8859-1, utf-8, utf-16,
> *;q=0.1");
> method.addRequestHeader("Accept-Encoding", "deflate, gzip, x-gzip,
> identity, *;q=0");
> //method.addRequestHeader("Accept-Encoding", "identity");
> method.addRequestHeader("Connection", "Keep-Alive, TE");
> method.addRequestHeader("TE", "deflate, gzip, chunked, identity,
> trailers");
> _________________________________________________________________
> Faites vous de nouveaux amis grâce à l'annuaire des profils Messenger !
> http://home.services.spaces.live.com/search/?page=searchresults&ss=true&FormId=AdvPeopleSearch&form=SPXFRM&tp=3&sc=2&pg=0&Search.DisplayName=Nom+public&search.gender=&search.age=&Search.FirstName=Pr%C3%A9nom&Search.LastName=Nom&search.location=Lieu&search.occupation=Profession&search.interests=amis&submit=Rechercher
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
This message (including attachments) contains information which is
confidential and privileged. Unless you are the intended recipient, you
may not use, copy, disseminate or disclose to anyone the message or any
information contained in the message. Proteus submits this email with
the understanding that it will be held in the strictest confidence and
will not be used, in whole or in part, for any purpose other than the
evaluation of Proteus' qualifications without the prior written consent
of Proteus, Inc. If you have received the message in error, please
advise the sender by reply email and delete the message.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]