Salesforce

How to log raw HTTP messages with OpenEdge Http client

« Go Back

Information

 
TitleHow to log raw HTTP messages with OpenEdge Http client
URL Namehow-to-log-raw-http-messages-with-httpclient
Article Number000180605
EnvironmentProduct: OpenEdge
Version: 11.5.x, 11.6.x, 11.7.x, 12.x
OS: All supported platforms
Other: OpenEdge.Net.pl, HttpClient
Question/Problem Description
How to log raw HTTP messages with HttpClient?

When using the OpenEdge.Net.pl code, is it possible to capture the request and response as they are sent over the network ?

Enable extended logging for HTTP Client introduced in OpenEdge 11.5
Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution
In OpenEdge 11.5.1
  • The HTTP request and response information is dumped by adding the following statement at the beginning of the application
SESSION:DEBUG-ALERT = TRUE
  • The SESSION:DEBUG-ALERT = TRUE statement writes the following files into the client temporary directory (-T) otherwise current working directory:
    • request-raw.txt
    • response-data-received.txt

In OpenEdge 11.6.x, 11.7.x and 12.x
  • The HTTP request and response information is dumped by setting the LOG-MANAGER:LOGGING-LEVEL to 5 at the beginning of the application. 
  • This writes the following files into the client temporary directory (-T) otherwise current working directory:
    • request-raw.txt
    • response-data-received.txt 
  • In addition, when LOG-MANAGER:LOGFILE-NAME is specified that log will contain additional debugging messages, including for example the time taken and bytes read per request/response, HTTP chunks received.

In OpenEdge 12.5, 12.6 and later
Workaround
Notes
References to Other Documentation:

Progress Article(s):
Empty or incomplete HTTPS response body in HTTP client   
 Is there an HTTP client for OpenEdge?
 
Keyword Phrase
Last Modified Date5/22/2023 2:35 PM

Powered by