The HTTPGet function may connect through a proxy server. You can define your proxy server in the Magic.ini file or in the HTTP Proxy – Address Port environment setting.
The retrieval phase of the function can be set to stop by specifying the HTTP Timeout environment setting in the Magic.ini file.
When an HTML file or any textual data is retrieved, you may query the returned text stream using all the available string manipulation functions.
Use the Blb2File function to store the retrieved file on your disk.
When the data contains special characters (e.g. %,&,<,>…), if you do not want the data translated, then include 'content-type: text/html' in the HTTP header of the request.
|