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.


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

Optional - Username used for Basic Authentication

Optional - Password used for Basic Authentication

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/2023
Comment or report problem with topic