[progress Communities] [progress Openedge Abl] Forum Post: Re: Debugging Http Classes?

Status
Not open for further replies.
T

Tim Kuehn

Guest
That helped. Now for the puzzle - this is what the HTTP class sent: GET /db/data/ HTTP/1.1 User-Agent: OpenEdge-HttpClient/0.3.0 (WIN32/64) OpenEdge/11.6.0.0.1233 Lib-ABLSockets/0.3.0 Host: localhost:7474 Accept: application/json and this is the response it logs as having gotten back: HTTP/1.1 200 OK Date: Fri, 05 Feb 2016 18:12:44 GMT Content-Type: application/json; charset=UTF-8 Access-Control-Allow-Origin: * Content-Length: 744 Server: Jetty(9.2.z-SNAPSHOT) This header indicates 744 bytes in the body of the message - which is correct. The log file shows the header followed by 8K of NULs in the file. This is what came out in the trace file - the READ and WRITE counts correspond to the headers only, the return data content is not logged as being transferred: [16/02/05@13:17:18.166-0500] P-176952 T-176792 1 4GL -- Logging level set to = 2 [16/02/05@13:17:18.166-0500] P-176952 T-176792 1 4GL -- No entry types are activated [16/02/05@13:17:18.167-0500] P-176952 T-176792 1 4GL -- Logging level set to = 5 [16/02/05@13:17:18.356-0500] P-176952 T-176792 1 4GL HTTPCLIB REQUEST: FILE= D:\tmp\Json\tmp\request-raw.txt [16/02/05@13:17:18.359-0500] P-176952 T-176792 1 4GL HTTPCLIB RESPONSE: FILE= D:\tmp\Json\tmp\response-data-received.txt [16/02/05@13:17:18.361-0500] P-176952 T-176792 1 4GL SOCKET CONNECT: -H localhost -S 7474 [16/02/05@13:17:19.321-0500] P-176952 T-176792 1 4GL SOCKET CONNECT: TIME(ms)=959 [16/02/05@13:17:19.322-0500] P-176952 T-176792 1 4GL SOCKET WRITE: TIME(ms)=0 [16/02/05@13:17:19.322-0500] P-176952 T-176792 1 4GL SOCKET WRITE: SIZE(b)=168 [16/02/05@13:17:19.329-0500] P-176952 T-176792 1 4GL SOCKET READ: AVAIL(b)=187 [16/02/05@13:17:19.329-0500] P-176952 T-176792 1 4GL SOCKET READ: TIME(ms)=0 [16/02/05@13:17:19.329-0500] P-176952 T-176792 1 4GL SOCKET READ: SIZE(b)=187 [16/02/05@13:17:19.330-0500] P-176952 T-176792 1 4GL HTTPCLIB CHUNK: NUM= 1 [16/02/05@13:17:19.330-0500] P-176952 T-176792 1 4GL HTTPCLIB CHUNK: SIZE(b)= 8192 [16/02/05@13:17:19.330-0500] P-176952 T-176792 1 4GL HTTPCLIB CHUNK: READ(b)= 187 [16/02/05@13:17:19.352-0500] P-176952 T-176792 1 4GL SOCKET READ: COMPLETE= yes [16/02/05@13:17:19.352-0500] P-176952 T-176792 1 4GL SOCKET READ: ERROR= ? [16/02/05@13:17:19.352-0500] P-176952 T-176792 1 4GL SOCKET READ: TOTAL TIME(ms)=28 [16/02/05@13:17:19.389-0500] P-176952 T-176792 1 4GL ---------- Log file closed at user's request

Continue reading...
 
Status
Not open for further replies.
Top