JamesBowen
19+ years progress programming and still learning.
I have existing code that has been working as expected on OE11.7. The code makes a simple POST request via a proxy server.
Since upgrading to 12.8 the POST request is different and responds with a 404 http error code.
OE 11.7 via a proxy, returns HTTP 200
OE 12.8 via a proxy, returns HTTP 404
OE 12.8 direct (no proxy) returns HTTP 200
The difference is that I can see is the resource location is the full URL path. https://www.randomhost.com/gateway/oauth/token vs. /gateway/oauth/token
I know when the HTTP client connects via a proxy, it should include the HOST & PORT in combination with a "CONNECT" and I wonder if this is a bug in the OE code.
Since upgrading to 12.8 the POST request is different and responds with a 404 http error code.
OE 11.7 via a proxy, returns HTTP 200
Code:
POST /gateway/oauth/token HTTP/1.1
User-Agent: OpenEdge-HttpClient/0.4.0 (WIN32/64) OpenEdge/11.7.20.0.2288 Lib-ABLSockets/0.5.0
Host: www.randomhost.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 185
Authorization: Basic xxxxxxxxxxx
Accept: */*
OE 12.8 via a proxy, returns HTTP 404
Code:
POST https://www.randomhost.com/gateway/oauth/token HTTP/1.1
User-Agent: OpenEdge-HttpClient/0.7.0 (WIN32/64) OpenEdge/12.8.3.0.1217 Lib-ABLSockets/0.7.0
Host: www.randomhost.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 195
Authorization: Basic xxxxxxxxxxx
Accept: application/json
OE 12.8 direct (no proxy) returns HTTP 200
Code:
POST gateway/oauth/token HTTP/1.1
User-Agent: OpenEdge-HttpClient/0.7.0 (WIN32/64) OpenEdge/12.8.3.0.1217 Lib-ABLSockets/0.7.0
Host: www.randomhost.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 195
Authorization: Basic xxxxxxxxxxx
Accept: application/json
The difference is that I can see is the resource location is the full URL path. https://www.randomhost.com/gateway/oauth/token vs. /gateway/oauth/token
I know when the HTTP client connects via a proxy, it should include the HOST & PORT in combination with a "CONNECT" and I wonder if this is a bug in the OE code.
Last edited: