====== GETWEBPAGE function ====== ==== Description ==== Socket function used to retrieve the contents of a webpage. ==== Syntax ==== retval = GetWebPage( url ) ParametersParameter ==== Description ==== url The web address of the webpage to retrieve. ==== Returns ==== A the HTML and response data. ==== Example ==== Declare Function GetWebPage url = "http://www.google.com" retval = getwebpage( url ) Swap Char(13) : char(10) With @fm In retval Swap char(10) With @fm In retval Swap @fm With char(13) : char(10) In retval OSWrite retval To "C:\url.txt" This will return the following: HTTP/1.0 200 OK Date: Wed, 31 Mar 2010 19:23:44 GMT Expires: -1 Cache-Control: private, max-age=0 Content-Type: text/html; charset=ISO-8859-1 Set-Cookie: PREF=ID=34b925c566dc62b0:TM=1270063424:LM=1270063424:S=7pP44X2pnsBmsBpe; expires=Fri, 30-Mar-2012 19:23:44 GMT; path=/; domain=.google.com Set-Cookie: NID=33=fP8eYZi6QSBXcLxqraz38TKBLGevc31zSKTNM3RQPKjNClRCb-SK6t2fHFizLnaHxhKny_A-DoswzNZodkR1zqIbOssrN04CRMzRPK1c6Tm4CXoLcPbK270FK-uAiLiJ; expires=Thu, 30-Sep-2010 19:23:44 GMT; path=/; domain=.google.com; HttpOnly Server: gws X-XSS-Protection: 0 Google



 
  Advanced Search
  Language Tools

New! Travel the world from your Google homepage


Advertising Programs - Business Solutions - About Google

©2010 - Privacy