Archived Forum Post

Index of archived forum posts

Question:

New feature for HTTP

Dec 04 '12 at 08:15

Hi Matt,

I am in need of a new feature in for the ChilkatRequest class of the Chilkat http. I need to delete objects against a restful web service. Can you please add the method UseDelete?

http://docs.rackspace.com/files/api/v1/cf-devguide/content/Delete_Container-d1e1765.html

Thanks

Erik


Answer

Erik,

There shouldn't be a need for it. When v9.2.0 (in May 2011) was released, the http.Use* methods were deprecated and replaced with the HttpVerb and ContentType properties. Here is the information reproduced from the release notes:

The Use methods are being deprecated. Instead of calling a method such as “UsePost”, set the HttpVerb and ContentType properties. The following table shows the equivalent property settings for each Use method.

UseGet: HttpVerb = "GET", ContentType = ""

UseDelete: HttpVerb = "DELETE", ContentType = ""

UseHead: HttpVerb = "HEAD", ContentType = ""

UsePut: HttpVerb = "PUT", ContentType = "application/x-www-form-urlencoded"

UsePost: HttpVerb = "POST", ContentType = "application/x-www-form-urlencoded"

UsePostMultipartForm: HttpVerb = "POST", ContentType = "multipart/form-data"

UseUpload: Same as UsePostMultipartForm

UseXmlHttp: HttpVerb = "POST", ContentType = "text/xml", MIME body = XML document