🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #3346

Klein ASP probleempje

#3346
From: Tom Vervoort
Date: Tue, 13 Jan 2004 14:32
97 lines
4811 bytes
This is a multi-part message in MIME format.

------=_NextPart_000_0056_01C3D9EA.81BAE630
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hoi,

ik heb een asp scriptje geschreven waarmee ik een bepaalde webpagina op =
een externe server wil gaan inlezen. De bedoeling is later nog test =
clausules toe te voegen om slechts een bepaald deel van die pagina weer =
te geven, maar dat is dus voor later... Voorlopig kamp ik echter met een =
error. Weet iemand misschien wat er fout is aan dit script ?

<%

Set FileObject =3D Server.CreateObject("Scripting.FileSystemObject")
Set File =3D =
FileObject.OpenTextFile("http://www.gva.be/nieuws/politiek/default.asp", =
1, False, 0)

Do While not File.AtEndOfStream
  Response.write(file.ReadLine)
Loop

file.Close( )

Set FileObject =3D nothing
Set File =3D nothing

%>

Alvast bedankt !!!


Mvg,

Tom V.
------=_NextPart_000_0056_01C3D9EA.81BAE630
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hoi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>ik heb een asp scriptje geschreven =
waarmee ik een=20
bepaalde webpagina op een externe server wil gaan inlezen. De bedoeling =
is later=20
nog test clausules toe te voegen om slechts een bepaald deel van die =
pagina weer=20
te geven, maar dat is dus voor later... Voorlopig kamp ik echter met een =
error.=20
Weet iemand misschien wat er fout is aan dit script ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2>&lt;%</FONT></DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2>Set FileObject =3D=20
Server.CreateObject("Scripting.FileSystemObject")<BR>Set File =3D=20
FileObject.OpenTextFile("</FONT><A=20
href=3D"http://www.gva.be/nieuws/politiek/default.asp"><FONT =
face=3DArial=20
color=3D#ff0000=20
size=3D2>http://www.gva.be/nieuws/politiek/default.asp</FONT></A><FONT =
face=3DArial=20
color=3D#ff0000 size=3D2>", 1, False, 0)</FONT></DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2>Do While not=20
File.AtEndOfStream<BR>&nbsp; =
Response.write(file.ReadLine)<BR>Loop</FONT></DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2>file.Close( =
)</FONT></DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2>Set FileObject =3D =
nothing<BR>Set File=20
=3D nothing</FONT></DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2>%&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Alvast bedankt !!!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Mvg,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Tom V.</FONT></DIV></BODY></HTML>

------=_NextPart_000_0056_01C3D9EA.81BAE630--
Technical Details
Message-ID: <rkTMb.10061$1I5.3507328@phobos.telenet-ops.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!easynet-monga!easynet.net!feed1.news.be.easynet.net!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,bc0382c96bff6c51,start
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2004-01-13 06:32:58 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!easynet-monga!easynet.net!feed1.news.be.easynet.net!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
From: "Tom Vervoort" <vervoort.tom@pandora.be>
Newsgroups: be.comp.programming
Subject: Klein ASP probleempje
Lines: 98
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="----=_NextPart_000_0056_01C3D9EA.81BAE630"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <rkTMb.10061$1I5.3507328@phobos.telenet-ops.be>
Date: Tue, 13 Jan 2004 14:32:55 GMT
NNTP-Posting-Host: 213.119.153.231
X-Complaints-To: abuse@telenet.be
X-Trace: phobos.telenet-ops.be 1074004375 213.119.153.231 (Tue, 13 Jan 2004 15:32:55 MET)
NNTP-Posting-Date: Tue, 13 Jan 2004 15:32:55 MET
Organization: Telenet Internet