I did several other tests with UserAgent set to known useragents and to
random strings. Data returned by http://labb.comunidadumbria.com/foro/ is
always the same. I checked with wireshark to be sure the useragent specified
was transmitted and it was. Example HTTP trace: 

GET /foro/ HTTP/1.0
Host: labb.comunidadumbria.com
Keep-Alive: 300
Connection: keep-alive
User-Agent: qhqhdfhdf


Are you sure you are not behind a proxy? Some proxies can be configured to
filter on user agents. Example:
http://docs.endian.com/archive/2.1/efw.proxy.http.html (figure 7.10) 

Ludo

-----Message d'origine-----
De : Felipe Monteiro de Carvalho [mailto:felipemonteiro.carva...@gmail.com] 
Envoyé : mercredi 13 avril 2011 13:38
À : Ararat Synapse
Cc : Petr Fejfar
Objet : Re: [Synalist] Reading the HTTP headers of a page


On Wed, Apr 13, 2011 at 1:13 PM, Petr Fejfar <petr.fej...@seznam.cz> wrote:
> If you are looking for headers only, what to use HEAD method instead 
> of GET one?

Well, originally I just wanted the headers, but now want everything =)

There is something wrong with this particular server, and I am trying to
find out what exactly.

In my desktop is gives proper content to Firefox with it's default user
Agent but not to Firefox with Opera's user agent. So I wanted to see what
would happen with a program which uses Opera's user agent, but here even if
I remove the line that changes the user agent I get no HTML document =o

>>  memoHeaders.Lines.LoadFromStream(Client.Document);
>>  memoHeaders.Text := Client.Headers.Text + LineEnding + 
>> memoHeaders.Text;
>
> The first command is odd: Document represents a message body and the 
> second command overwrites memo content on the top of that

I want to show first the headers and then the document, with as few as
possible lines of code. This command works fine.

-- 
Felipe Monteiro de Carvalho

----------------------------------------------------------------------------
--
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
synalist-public mailing list synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to