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 

Re: how to use IdHTTP get frame?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Remy Lebeau (TeamB)
Guest





PostPosted: Sun Dec 19, 2004 7:04 pm    Post subject: Re: how to use IdHTTP get frame? Reply with quote




"chris" <chris (AT) nndk (DOT) com> wrote


Quote:
can IdHTTP.get("http://www.51live.com/tvtv/play.asp?tvid=1052")
but IdHTTP can't get "html/1052.asp"

You are supposed to specify the full URL:

IdHTTP.Get("http://www.51live.com/tvtv/html/1052.asp")


Gambit



Back to top
Avatar Zondertau
Guest





PostPosted: Sun Dec 19, 2004 7:05 pm    Post subject: Re: how to use IdHTTP get frame? Reply with quote



Quote:
can IdHTTP.get("http://www.51live.com/tvtv/play.asp?tvid=1052")
but IdHTTP can't get "html/1052.asp"

This path is relative, so your program will have to determine the
absolute URL before calling TIdHTTP.Get. This is done by chopping of
everything past the last slash and then append the relative url.

Relative URLs can be recoginzed because they don't have :// in them.
Relative URLs come in two flavors: the kind you encountered and those
that start with a slash. This latter kind has to be put directly after
the host name in the base URL.

Note that stuff can get more complicated: normally the base URL is the
current URL minus the part past the last slash, but HTML pages may have
a <BASE> tag which changes this.

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.