Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

Make money selling software. Check this out here

Hosted clickbank mall. Check this out here




   Misc

   Amazon

   Links

    


Grab a page

 

This function is used to grab an HTML page using Microsofts XMLHTTP component , using this component you can grab any page off the internet . Here is the code for this example

<%
Function GrabPage(strURL)
Dim objXML
Set objXML = Server.CreateObject("Microsoft.XMLHTTP")
objXML.Open "GET" , strURL , False ,"",""
objXML.Send
If Err.Number = 0 Then
If objXML.Status = 200 then
GrabPage = objXML.ResponseText
Else
GrabPage = "Incorrect URL"
End if
Else
GrabPage = Err.Description
End If
Set objXML = Nothing
End Function
%>

And you call the function like this

<%= GrabPage("http://www.freemobilezone.com") %>

 

 

 

 

 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
Open and display a text file(ASP)
mouse position(VB)
get the exact date and time(VB.net)
Display time zone(Powershell)
Javascript support(ASP.net)
Create a php file(C)
radio button redirection(ASP)
read the contents of an ini file(php)

    




Copyright © 2003 by programmershelp.co.uk