BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IdHTTP.Head locks when try to "head' an url

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Gustavo
Guest





PostPosted: Wed May 09, 2007 7:50 pm    Post subject: IdHTTP.Head locks when try to "head' an url Reply with quote



Hi all,

When I tried to idHTTP.Head an url, idHTTP locks and nothing happens.
The app still waiting for a response and not timeout occurs. The URL
is:

http://g.msn.com/mh_mshp_pt-BR/98765?8262677D&http://www.microsoft.com&&HL=Microsoft%2bCorporation&CM=Masthead&CE=geotargeting


An idHTTP.Get works fine, just Head doesn't on this url. Other urls
work fine too.

Any idea?

Thanks a lot,

Gustavo
Back to top
Gustavo
Guest





PostPosted: Fri May 11, 2007 2:37 am    Post subject: Re: IdHTTP.Head locks when try to "head' an url Reply with quote



I found a workaround for that:

1. Use Get instead of Head;
2. Before execute Get, insert this line:

idHTTP.Request.Range := '0-0';

The result returns all headers and none content (really it returns
just 1 byte of document, I can live with this Wink.

Gustavo




On May 9, 11:50 am, Gustavo <cont...@gamoennich.com> wrote:
Quote:
Hi all,



Quote:
When I tried to idHTTP.Head an url, idHTTP locks and nothing happens.
The app still waiting for a response and not timeout occurs. The URL
is:

http://g.msn.com/mh_mshp_pt-BR/98765?8262677D&http://www.microsoft.co...

An idHTTP.Get works fine, just Head doesn't on this url. Other urls
work fine too.

Any idea?

Thanks a lot,

Gustavo
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.