Daniel Rigney (DanielR6574)
Stratosphere Technical Consulting
Senior Consultant
Stratosphere Technical Consulting
DanielR6574 Member since 2016 4 posts
Stratosphere Technical Consulting
Posted: December 20, 2018
Last activity: December 31, 2018
Posted: 20 Dec 2018 17:46 EST
Last activity: 31 Dec 2018 13:57 EST

How to Log Raw REST Request

How do you log the Raw Request that Pega is sending for a Connect-REST POST:

Not just the JSON and not the other bits and pieces that the debug logging gives you and not the other bits and pieces available on the parameter page in the tracer, but the actual full Raw request.

That would look like follows:
POST http://<myurl>/alfresco/api/-default-/public/alfresco/versions/1/nodes/<>/children HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: multipart/form-data; boundary="----=_Part_5_403844976.1545345515359"
MIME-Version: 1.0
Authorization: Basic 23434545454234545
Content-Length: 446
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

Content-Type: multipart/form-data
Content-Transfer-Encoding: 8bit


Content-Type: text/plain; charset=Cp1252; name=HelloWorld.txt
Content-Transfer-Encoding: binary
Content-Disposition: form-data; name="HelloWorld.txt"; filename="HelloWorld.txt"

Hellow World!

***Edited by Moderator: Pallavi to update platform capability tags***

Data Integration Java and Activities
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.