Uses an HTTP DELETE
operation to retrieve Web content from a URL.
DO wwHttp
LOCAL loHttp as wwHttp OF wwhttp.prg
loHttp = CREATEOBJECT("wwHttp")
lcJsonResponse = loHttp.Delete("https://somesite.com/customers/11")
? lcJsonResponse
Please also see wwHttp::HttpGet and Access Http Content over the Web.
o.Delete(lcUrl, lcUserName, lcPassword, lcOutputFile)
Return Value
String - HTTP result, which most likely will be HTML, but can be whatever data the link returns. This includes XML and binary data like Word documents or even data files. On error this string will be blank and the nError and cErrorMsg properties will be set.
Parameters
lcUrl
The full URL you want to retrieve. This URL must include the protocol (HTTP or HTTPS for example) and the Domain Name or IP Address. Example:
http://www.west-wind.com/wwipstuff.asp
lcUserName
Optional - Username used for Basic Authentication
lcPassword
Optional - Password used for Basic Authentication
lcFileName
An optional path into which to download the content into. If this parameter is used the return value from this method will always return blank and only the file is created on success. To check for errors, check the nError/cErrorMsg and the cResultCode properties.
See also:
Class wwHTTP | wwHTTP::HTTPGet (deprcated)© West Wind Technologies, 1996-2024 • Updated: 03/28/23
Comment or report problem with topic