NOP Design Home Page
Documentation
TOC/Index
Search
Downloads



LoadUrl

Loads contents of a Uniform Resource Locator to a variable

Loads http, https, or ftp data into a variable

Sample Source

If (LoadUrl strContentVariable From "test.txt") Then
   Say strContentVariable
EndIf

If (LoadUrl strContentVariable From "https://sample.com/test.txt") Then
   Say strContentVariable
EndIf

If (LoadUrl strContentVariable From "http://sample.com/test.txt") Then
   Say strContentVariable
EndIf

If (LoadUrl strContentVariable From "ftp://sample.com/test.txt") Then
   Say strContentVariable
EndIf

If (LoadUrl strContentVariable From "http://sample.com/cgi-bin/test.cgi?a=b&c=d") Then
   Say strContentVariable
EndIf

Sample Source

#Load URL with POST mode data

If( LoadUrl ContentVariable From "http://sample.com/cgi-bin/test.cgi" With "a=b&c=d") Then
   Say ContentVariable
EndIf

Related Function(s):
   LoadFile;

Minimum version: 4.8, build 20050912