Https request with logs

From i2Rest
Revision as of 16:52, 10 April 2020 by Pavel.lobko (talk | contribs) (Created page with "{{DISPLAYTITLE:Https request with logs}} Lets exemine some more complicated example: I2REST COMMAND(*GET) URL('https://github.com') OUTPUT(*BOTH) DCMCLIENT(MYCLIENT) REC...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Lets exemine some more complicated example:

 I2REST COMMAND(*GET) URL('https://github.com') OUTPUT(*BOTH) 
 DCMCLIENT(MYCLIENT) RECVLOG('/home/btpl/recv.log') SENTLOG('/home/btpl/sent.log') 
 AUTHMETHOD(*NONE)                                                                          

Noauth-2.png

Dealing with ssl/tls secured resources you have to setup your IBM i DCM client.
Result of a request could be checked in a joblog and/or printer output file, according to a value of «Output log events to» parameter.
All the data transferred from/to remote server will be saved to log files specified in parameters «Log recv messages» and «Log sent messages».
Noauth-log.png


Back to i2Rest Client