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 '<IMG SRC=' tags.
Afterward I want to download all of the images, but how can I determine
the TRUE location of the images? For example, say the image tag is:
'<IMG SRC='test.com/photo.jpg'' - for all I know, "test.com" could just
be a directory on the server or it could be the website. Another
example, say the image tag is: '<IMG SRC='/photo.jpg'' - so the image is
in the root directory of the website, but who knows what the root
directory is? It may simply be 'test.com', or if the html doc is located
in a subdirectory, it may be something like 'test.com/users/me'.

So, what is the appropriate way to determine the actual true location of
these images from the 'IMG' tags?

Much thanks in advance. 


<span id=m2wTl><p><font face="Arial, Helvetica, sans-serif" size="2" 
style="font-size:13.5px">_______________________________________________________________<BR>Get
 the Free email that has everyone talking at <a href=http://www.mail2world.com 
target=new>http://www.mail2world.com</a><br>  <font color=#999999>Unlimited 
Email Storage &#150; POP3 &#150; Calendar &#150; SMS &#150; Translator &#150; 
Much More!</font></font></span>
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to