Unofficial Content
  • This documentation is valid for:

When using HTTPClient in Java it is possible to enable a log to debug the connection.

This is useful when using HttpClient data type or consuming web services, as they rely on HTTPClient.

To enable the logging it is necessary to set the HTTPClient.log.mask Java System Property, this can be easily done passing a command line argument during Java initialization:

Example: -DHTTPClient.log.mask=3

The value passed is the bitwise or of the values of the desired enabled facilities:

  • HTTPConnection = 1
  • HTTPResponse = 2
  • StreamDemultiplexor = 4
  • Authorization = 8
  • Cookies = 16
  • Modules = 32
  • Socks = 64
  • URLConnection = 128
  • Extended Info = 256
  • ALL = -1

 


Category:Genexus Evolution 2?
Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant