Just read sections 3 and 4
http://www.faqs.org/rfcs/rfc1808.html
Section 3 explain how you define, to the page you are parsing, its base
URL. The base URL is needed to resolve later relative URLs.
Relative URLs resolving method is explained at section 4.
> I thought that the root dir could be so
>I thought that the root dir could be something definable, and therefore
> may be different than the domain name?
> Like the root dir for
> "www.geocities.com/Athens/111/delphi/docs/sockets.html" would be
> "www.geocities.com/Athens/111/delphi"? But you say it would be
> "www.geocities.com", correc
I thought that the root dir could be something definable, and therefore
may be different than the domain name?
Like the root dir for
"www.geocities.com/Athens/111/delphi/docs/sockets.html" would be
"www.geocities.com/Athens/111/delphi"? But you say it would be
"www.geocities.com", correct?
Thanks
Hello,
Unless the first part of the string contains "://", it is current domain.
Else unless it starts with "/", it is relative path.
Regards,
SZ
On 5/2/09, Xxxx Xxxx wrote:
>
> Hi, I'm using httpcli to save a webpage html doc and I extract all of
> it's image locations to a text file by savin
RFC1738 - Uniform Resource Locators (URL)
http://www.faqs.org/rfcs/rfc1738.html
RFC1808 - Relative Uniform Resource Locators
http://www.faqs.org/rfcs/rfc1808.html
> Hi, I'm using httpcli to save a webpage html doc and I extract all of
> it's image locations to a text file by saving the ' be a di
> Hi, I'm using httpcli to save a webpage html doc and I extract all
> of
> it's image locations to a text file by saving the ' just be a directory on the server or it could be the website.
There is no HTTP in the URL, so it's a local file.
Angus
--
To unsubscribe or change your settings for
> Hi, I'm using httpcli to save a webpage html doc and I extract all of
> it's image locations to a text file by saving the ' be a directory on the server or it could be the website. Another
> example, say the image tag is: ' in the root directory of the website, but who knows what the root
> direc