Wolfgang Schölmberger
Member
Hi everybody
OE117.2, Win 8.1
I had a perfectly working code, as long as I could access a 3rd-party-website by "HTTP". Now they changed the websites address to HTTPS and I'm lost.
When I enter the following string directly in the address-line of my browser:
https://datapadmo.it-park.at/api/ta...=connect/_immoware&p=28immoware05!&anr=123456
i get the expected answer "{status":"offen"}, which should be a JSON-Response
When I try the same with the following small program:
USING OpenEdge.Net.HTTP.RequestBuilder.
USING OpenEdge.Net.HTTP.ClientBuilder.
USING OpenEdge.Net.HTTP.IHttpRequest.
USING OpenEdge.Net.HTTP.IHttpResponse.
DEFINE VARIABLE oRequest AS OpenEdge.Net.HTTP.IHttpRequest NO-UNDO.
DEFINE VARIABLE oResponse AS OpenEdge.Net.HTTP.IHttpResponse NO-UNDO.
oRequest = RequestBuilder:Get("https://datapadmo.it-park.at/api/ta...=connect/_immoware&p=28immoware05!&anr=123456"):AcceptJson():Request.
oResponse = ClientBuilder:Build():Client:Execute(oRequest).
MESSAGE oResponse:ContentType
VIEW-AS ALERT-BOX INFO BUTTONS OK TITLE PROGRAM-NAME(1).
...I get an HTML-file, which has nothing in common with the JSON-Response i get online.
What I found out - and what I don't understand: Whatever HTTPS-String I use in the request, it changes nothing in the response.
I tried alle the following strings (just to get any different response):
RequestBuilder:Get("https://datapadmo.it-park.at/api/ta...=connect/_immoware&p=28immoware05!&anr=123456"):Request.
RequestBuilder:Get("https://datapadmo.it-park.at/api/task/xp_AppGetTask.xsp"):Request.
RequestBuilder:Get("DataPad"):Request.
RequestBuilder:Get("DataPad"):Request.
It seems that everything after the address-string itself is ignored.
Why? Can somebody pls point out what I'm doing wrong ?
In case somebody would like to try this code, I attatched the CER-File (without this one gets error 9318 - see my previous post "Avoiding SSL-verification). Its the SSL-Verification for "DST Root CA X3"
OE117.2, Win 8.1
I had a perfectly working code, as long as I could access a 3rd-party-website by "HTTP". Now they changed the websites address to HTTPS and I'm lost.
When I enter the following string directly in the address-line of my browser:
https://datapadmo.it-park.at/api/ta...=connect/_immoware&p=28immoware05!&anr=123456
i get the expected answer "{status":"offen"}, which should be a JSON-Response
When I try the same with the following small program:
USING OpenEdge.Net.HTTP.RequestBuilder.
USING OpenEdge.Net.HTTP.ClientBuilder.
USING OpenEdge.Net.HTTP.IHttpRequest.
USING OpenEdge.Net.HTTP.IHttpResponse.
DEFINE VARIABLE oRequest AS OpenEdge.Net.HTTP.IHttpRequest NO-UNDO.
DEFINE VARIABLE oResponse AS OpenEdge.Net.HTTP.IHttpResponse NO-UNDO.
oRequest = RequestBuilder:Get("https://datapadmo.it-park.at/api/ta...=connect/_immoware&p=28immoware05!&anr=123456"):AcceptJson():Request.
oResponse = ClientBuilder:Build():Client:Execute(oRequest).
MESSAGE oResponse:ContentType
VIEW-AS ALERT-BOX INFO BUTTONS OK TITLE PROGRAM-NAME(1).
...I get an HTML-file, which has nothing in common with the JSON-Response i get online.
What I found out - and what I don't understand: Whatever HTTPS-String I use in the request, it changes nothing in the response.
I tried alle the following strings (just to get any different response):
RequestBuilder:Get("https://datapadmo.it-park.at/api/ta...=connect/_immoware&p=28immoware05!&anr=123456"):Request.
RequestBuilder:Get("https://datapadmo.it-park.at/api/task/xp_AppGetTask.xsp"):Request.
RequestBuilder:Get("DataPad"):Request.
RequestBuilder:Get("DataPad"):Request.
It seems that everything after the address-string itself is ignored.
Why? Can somebody pls point out what I'm doing wrong ?
In case somebody would like to try this code, I attatched the CER-File (without this one gets error 9318 - see my previous post "Avoiding SSL-verification). Its the SSL-Verification for "DST Root CA X3"