Retrieves HTTP using a standard URL into a string. Use this method to download XML from a server quickly and easily without having to instantiate other objects.

This method simply performs passthrough calls to HTTPGet. If you need to more functionality and control over the HTTP request such as special proxy modes or special POST content types, use the wwHTTP class's HTTPGet or HTTPGetEx methods. This includes if you need to configure things such as proxies or timeouts.

Return Value

Parameters

Url can contain HTTPS reference and port information which is properly interpreted.

lcPostData
Optional - You can post data to the server. Any posted is posted raw without an HTTP header. Use this to post XML to the server.

lcUsername
Optional - Basic Authentication Username

lcPassword
Optional - Basic Authentication Password

lnTimeout
The timeout for the request. Defaults to wwHTTP's setting of 15 seconds.

Remarks

This method will fail in the free version of wwXML since it requires wwIPStuff functionality. You can download wwIPStuff and SET CLASSLIB TO wwIPStuff to make this method operational with the free version.