<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>9 Oct 2017 22:15:00 Z</lastBuildDate><pubDate>3 Oct 2017 10:55:00 Z</pubDate><description>Morning&#13;
&#13;
I am now trying to get HTTPRequest or HTTPForm to work but with no avail. Fabrice I have had a look at your use of HTTPRequest in replication but I am not coming right.&#13;
&#13;
If anybody cares to go to http://api.cyclopsit.com/ you will see that there are 3 calls exposed.&#13;
&#13;
1. List all the agents&#13;
2. Get specific agent details&#13;
3. Update agent details&#13;
&#13;
1. If you type http://api.cyclopsit.com/1.0/Client/List/1 in a browser you will see that the details for 2 agents are returned.&#13;
&#13;
In Windev I tried this:&#13;
&#13;
asURL is ANSI string = "http://api.CyclopsIT.com/1.0/Client/List/1"&#13;
asHeader is ANSI string&#13;
sUsResult is UNICODE string&#13;
IF NOT HTTPRequest(asURL,"","","","text/xml","","")&#13;
Error(ErrorInfo(errFullDetails))&#13;
ELSE&#13;
asHeader = HTTPGetResult(httpHeader)&#13;
END&#13;
Info(asHeader)&#13;
&#13;
All that is returned is the OK and details about the server but no details of the 2 agents.&#13;
&#13;
2. If you type in http://api.cyclopsit.com/1.0/Client/Get/1/1 in a browser you will see that the details of one agent is returned.&#13;
&#13;
In Windev I tried it now as follow:&#13;
&#13;
asURL is ANSI string = "http://api.CyclopsIT.com/1.0/Client/Get/"&#13;
asHeader is ANSI string&#13;
sUsResult is UNICODE string&#13;
HTTPCreateForm("Form")&#13;
HTTPAddParameter("Form","agentId","1")&#13;
HTTPAddParameter("Form","clientId","1")&#13;
IF NOT HTTPSendForm("Form",asURL,"","","","text/xml") THEN&#13;
Error(ErrorInfo(errFullDetails))&#13;
END&#13;
asHeader = HTTPGetResult(httpHeader)&#13;
HTTPCancelForm("Form")&#13;
Info(asHeader)&#13;
&#13;
Once again all I get is an OK with some server details but not usable data.&#13;
&#13;
Can someone please tell me what I am doing wrong.&#13;
&#13;
Thanks in advance&#13;
&#13;
&#13;
Ericus Steyn</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62834-wd21-http-reqeusts/read.awp</link><title>[WD21]HTTP Reqeusts</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/62834-wd21-http-requests-62893/read.awp</comments><pubDate>9 Oct 2017 22:15:00 Z</pubDate><description>Instead of doing the httpHeader in the HTTPGetResult, just do the HTTPGetResult()</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62834-wd21-http-requests-62893/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62834-wd21-http-requests-62893/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62834-wd21-http-reqeusts/read.awp">[WD21]HTTP Reqeusts</source><title>Re: [WD21]HTTP Requests</title></item></channel></rss>
