comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Reading HTML (web) page through socket
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Reading HTML (web) page through socket [message #59817] Wed, 09 April 2008 12:11 Go to next message
rhyme2ri2 is currently offline  rhyme2ri2
Messages: 11
Registered: February 2008
Junior Member
Hello all,

I want to read an html(web) page. I am able to do this using socket
but the problem is that i don't know the size of the page. Is there
any possible way to know the size of page before reading it using
sockets. The size is needed as i need to allocate buffer on the basis
of this size.

Or, if there is a better way to read an html(web) page in idl then
please let me know.

Thanks & Regards
-Ritu
Re: Reading HTML (web) page through socket [message #59830 is a reply to message #59817] Fri, 18 April 2008 06:31 Go to previous message
JeremyFaden is currently offline  JeremyFaden
Messages: 8
Registered: March 2005
Junior Member
Can you do a HEAD request, then look for content-length in the
response?
Jeremy

Jeremy Faden

On Apr 9, 2:11 pm, rhyme2ri2 <rhyme2...@gmail.com> wrote:
> Hello all,
>
> I want to read an html(web) page. I am able to do this usingsocket
> but the problem is that i don't know the size of the page. Is there
> any possible way to know the size of page before reading it using
> sockets. The size is needed as i need to allocate buffer on the basis
> of this size.
>
> Or, if there is a better way to read an html(web) page in idl then
> please let me know.
>
> Thanks & Regards
> -Ritu
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Passing strings by Spawn
Next Topic: understanding 'fix' command!

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:39:44 PDT 2025

Total time taken to generate the page: 0.00519 seconds