 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Remy Lebeau (TeamB) Guest
|
Posted: Sun Dec 19, 2004 7:04 pm Post subject: Re: how to use IdHTTP get frame? |
|
|
"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
|
Posted: Sun Dec 19, 2004 7:05 pm Post subject: Re: how to use IdHTTP get frame? |
|
|
| 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 |
|
 |
|
|
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
|
|