Hello,
I use this code for connection to a testportal
sURL is string
sURL="[test.qguardportal.be];
sHTTPRequest is httpRequest
//sHTTPRequest..Header["Accept: application/json"]
sHTTPRequest..Header["X-API-TOKEN:4723152"]
sHTTPRequest..URL=sURL
//sHTTPRequest..Method=httpPost
sHTTPRequest..Content=sURL
sHTTPRequest..ContentType="application/json"
cMyResponse is httpResponse = HTTPSend(sHTTPRequest)
IF ErrorOccurred THEN
Error(ErrorInfo(errFullDetails))
ELSE
EDT_NoName1 = cMyResponse..Content
END
This is the respons
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 405 </title>
</head>
<body>
<h2>HTTP ERROR: 405</h2>
<p>Problem accessing /v2/recipeinfo/21. Reason:
<pre> Method Not Allowed</pre></p>
<hr /><a href="[eclipse.org] by Jetty:// 9.3.11.v20160721</a><hr/>
</body>
</html>
So Metod not allowed.
Am I doing something wrong.
Greetings
Willy Hermans
I use this code for connection to a testportal
sURL is string
sURL="[test.qguardportal.be];
sHTTPRequest is httpRequest
//sHTTPRequest..Header["Accept: application/json"]
sHTTPRequest..Header["X-API-TOKEN:4723152"]
sHTTPRequest..URL=sURL
//sHTTPRequest..Method=httpPost
sHTTPRequest..Content=sURL
sHTTPRequest..ContentType="application/json"
cMyResponse is httpResponse = HTTPSend(sHTTPRequest)
IF ErrorOccurred THEN
Error(ErrorInfo(errFullDetails))
ELSE
EDT_NoName1 = cMyResponse..Content
END
This is the respons
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 405 </title>
</head>
<body>
<h2>HTTP ERROR: 405</h2>
<p>Problem accessing /v2/recipeinfo/21. Reason:
<pre> Method Not Allowed</pre></p>
<hr /><a href="[eclipse.org] by Jetty:// 9.3.11.v20160721</a><hr/>
</body>
</html>
So Metod not allowed.
Am I doing something wrong.
Greetings
Willy Hermans