<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>1 Dec 2017 19:21:59 Z</lastBuildDate><pubDate>1 Dec 2017 19:21:59 Z</pubDate><description>Folks,&#13;
&#13;
I'm trying to run the HTTPSendForm () function for the httpDelete method, but it is returning Error 415 - Unsupported Media Type.&#13;
&#13;
Follow Code below:&#13;
&#13;
sAuthorization is string = EDT_Token_Type + "" + EDT_Access_Token&#13;
&#13;
hEnviaRequest is httpRequest&#13;
hRecebeRequest is httpResponse&#13;
vResposta is Variant&#13;
sEndPoint is string&#13;
   &#13;
sEndPoint = "https://teste.com/purchases/100"&#13;
&#13;
hEnviaRequest..URL = sEndPoint&#13;
hEnviaRequest..Method = httpDelete&#13;
hEnviaRequest..ContentType = "application / x-www-form-urlencoded"&#13;
hEnviaRequest..Header ["Authorization"] = sAuthorization&#13;
&#13;
HTTPCreateForm ("FORMD")&#13;
HTTPAddParameter ("FORMD", "storecode", "1")&#13;
HTTPAddParameter ("FORMD", "devicecode", "22")&#13;
HTTPAddParameter ("FORMD", "date", "2017-11-20")&#13;
&#13;
hRecebeRequest = HTTPSendForm ("FORMD", hEnviaRequest)&#13;
&#13;
IF NOT ErrorOccurred THEN&#13;
&#13;
     IF hRecebeRequest..StatusCode &lt;&gt; 200 THEN&#13;
          Info ("Error:" + hRecebeRequest..StatusCode + "-&#13;
 "+ hRecebeRequest..DescriptionStatusCode)&#13;
     ELSE&#13;
           Info ("OK")&#13;
     END&#13;
&#13;
ELSE&#13;
Error (ErrorInfo (errFullDetails))&#13;
END&#13;
&#13;
HTTPCancelForm ("FORMD")&#13;
&#13;
If anyone has a tip, please help us.&#13;
&#13;
Vinicius Souza</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63535-httpsendform-function-execution-failed-with-httpdelete-method/read.awp</link><title>HTTPSendForm () Function Execution failed with the httpDelete method.</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
