Interaction between browser and server not needed?

A

Anders Skelander

This question is slightly off-topic, but anyway:

I found this Visual Basic code chunk that reads all files/contents
from a web page.

http://www.freevbcode.com/ShowCode.Asp?ID=1252

My question is: Will it always work with a straightforward
loop like this, one that pulls all the information from the web
server? Or does the client (normally a web browser application)
sometimes have to interact with the server, respond to requests
that go from the server to the client, during the download of all
page contents?

Thanks in advance for any help.

Anders
 
B

Benjamin Niemann

Hello,

Anders said:
This question is slightly off-topic, but anyway:

I found this Visual Basic code chunk that reads all files/contents
from a web page.

http://www.freevbcode.com/ShowCode.Asp?ID=1252

My question is: Will it always work with a straightforward
loop like this, one that pulls all the information from the web
server? Or does the client (normally a web browser application)
sometimes have to interact with the server, respond to requests
that go from the server to the client, during the download of all
page contents?

I'm not into VB, but this one looks like it just downloads a single file. It
does not pull 'all files/contents from a web page', which would require
parsing the HTML and CSS code to look for embedded media (images..),
external stylesheets and javascript.

For downloading just a single file: yes, this is all that has to be done (in
any languages which provide the functions to abstract the not so trivial
HTTP handling away).


HTH
 
R

richard

Anders Skelander said:
This question is slightly off-topic, but anyway:

I found this Visual Basic code chunk that reads all files/contents
from a web page.

http://www.freevbcode.com/ShowCode.Asp?ID=1252

My question is: Will it always work with a straightforward
loop like this, one that pulls all the information from the web
server? Or does the client (normally a web browser application)
sometimes have to interact with the server, respond to requests
that go from the server to the client, during the download of all
page contents?

Thanks in advance for any help.

Anders

VB=Visual Basic scripting which only works in an IE browser.
 
H

Harlan Messinger

richard said:
VB=Visual Basic scripting which only works in an IE browser.

This isn't VBScript, it's Visual Basic. VBScript doesn't have data
types. Besides that, VBScript is most commonly used on the server--it's
the language of ASP.NET.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top