This is what I thought also, but I have FollowRelocation set to True and
it still downloads these images as invalid - like in the 'firebug.gif'
example. There is data there, but the image won't display.


<-----Original Message-----> 
>From: Francois PIETTE [francois.pie...@skynet.be]
>Sent: 5/3/2009 8:45:14 AM
>To: twsocket@elists.org
>Subject: Re: [twsocket] webpage image source
>
>> One more question: when I try to retrieve some images using the
appended
>> "www.", the image does not download, but when I omit the "www.", it
>> downloads correctly.
>> Try doing a GET request for "notepad.com/images/firebug.gif" and it
>> works. Try "www.notepad.com/images/firebug.gif" and it does not.
>> Either way will work in my web browser, but with HttpCli it only
works
>> without "www."
>
>Actually it works if you allow HttpCli to follow relocation.
>The real location for the image is without "www", but the server do a 
>relocation if you prepend "www". Your browser automatically follow 
>relocation.
>
>Use HttpTst sample program to play with that url.
>
>> Is it possible to determine which format to use with HttpCli besides
>> doing a HEAD every time?
>
>I don't understand what you mean.
>HttpCli doesn't care about data format. It is just a HTTP transport
layer, 
>whatever data is transported.
>
>--
>francois.pie...@overbyte.be
>The author of the freeware multi-tier middleware MidWare
>The author of the freeware Internet Component Suite (ICS)
>http://www.overbyte.be
>
>-- 
>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
>.
> 


<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