<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>29 Aug 2017 19:25:00 Z</lastBuildDate><pubDate>29 Aug 2017 18:52:00 Z</pubDate><description>Has anyone used cURL in webdev? I'm trying to make requests by using restRequest and restResponse variables, but without success, the server is responding but it always says that my keys are wrong, which aren't, here is my code:&#13;
cMyRequest is restRequest&#13;
cMyRequest..URL = "https://sandbox-api.openpay.mx/v1/{merchant_ID}/charges"&#13;
cMyRequest..Content = "-u {private_key}"&#13;
cMyRequest..ContentType = typeMimeJSON&#13;
cMyRequest..Method = httpPost&#13;
cMyResponse is restResponse = RESTSend(cMyRequest)&#13;
IF ErrorOccurred THEN&#13;
Error(ErrorInfo(errFullDetails))&#13;
ELSE&#13;
Info(cMyResponse..Content)&#13;
END&#13;
&#13;
The documentation for cURL is as follows:&#13;
Authentication example&#13;
curl https://sandbox-api.openpay.mx/v1/mzdtln0bmtms6o3kck8f/charges \&#13;
-u sk_e568c42a6c384b7ab02cd47d2e407cab:</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62454-wb22-webdev-and-curl/read.awp</link><title>[WB22] WebDev and cURL</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62454-wb22-webdev-and-curl-62457/read.awp</comments><pubDate>29 Aug 2017 19:25:00 Z</pubDate><description>Solved it! Still needs more coding, but could get past the error I was getting thanks to Uncle Pete (Pete Halsted)&#13;
Here is my c…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62454-wb22-webdev-and-curl-62457/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62454-wb22-webdev-and-curl-62457/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62454-wb22-webdev-and-curl/read.awp">[WB22] WebDev and cURL</source><title>Re: [WB22] WebDev and cURL</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62454-wb22-webdev-and-curl-62456/read.awp</comments><pubDate>29 Aug 2017 19:04:00 Z</pubDate><description>Yes! I'm replacing it with information of my client, and it ends up something like this:&#13;
&#13;
https://sandbox-api.openpay.mx/v1/mz…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62454-wb22-webdev-and-curl-62456/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62454-wb22-webdev-and-curl-62456/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62454-wb22-webdev-and-curl/read.awp">[WB22] WebDev and cURL</source><title>Re: [WB22] WebDev and cURL</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62454-wb22-webdev-and-curl-62455/read.awp</comments><pubDate>29 Aug 2017 19:02:00 Z</pubDate><description>Hi Luis,&#13;
&#13;
AFAIK, this part: cMyRequest..URL = "{merchant_ID}/charges"&#13;
&#13;
is NOT a valid URL part&#13;
&#13;
So either you need to repl…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62454-wb22-webdev-and-curl-62455/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62454-wb22-webdev-and-curl-62455/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62454-wb22-webdev-and-curl/read.awp">[WB22] WebDev and cURL</source><title>Re: [WB22] WebDev and cURL</title></item></channel></rss>
