Written by

System Analyst at First Line Software
Question Flávio Lúcio Naves Júnior · Jan 12, 2022

See all properties from a %Net.HttpRequest

Hello everyone,

I want to see all properties from a %Net.HttpRequest, I tried to use:

zw objHttpRequest

It's show all the properties, but I want something more easy to analyse like a curl command, is it possible?

Thanks.

Product version: Caché 2018.1

Comments

David Hockenbroch · Jan 12, 2022

Depending on your needs, you might consider creating a class that extends both %Net.HttpRequest and %JSON.Adaptor and using the %JSON.Adaptor methods to create a JSON representation of the instance. That would be easier to analyze.

0
Jeffrey Drumm · Jan 12, 2022

If you're interested in seeing what the actual request looks like, use the value 1 for the 2nd parameter to the Get/Post/Put/etc. call.

USER> Do objHttpRequest.Get("location",1)

This will output the request to the local device, so it's handy for terminal-based troubleshooting.

0