I would love to be able to shortcut this whole nightmare in the future, allowing for maybe this code:
Code: Select all
$URL = "http://www.example.org/example.xml"
*buffer = AllocateMemory(5000)
If Length.i = ReceiveHTTPStream($URL, *buffer) // 0 means "Could not download", anything else is the length of the file received..
If XML = CatchXML(#PB_Any, *buffer, Length)
Messagerequester("Success", "Loaded XML File from Internet")
EndIf
EndIf