Forum Discussion

rratchat's avatar
rratchat
New Contributor
2 years ago

Get Raw Response by Using "aqHttpResponse"

I want to get a Raw Response by using aqHttpResponse, which, as far as I know, has two methods to get headers.

 

Log.Message(aqHttpResponse.AllHeaders); // All headers
Log.Message(aqHttpResponse.GetHeader("Content-Type")); // A specific header

 

All the headers that I have got

All response headers:
Cache-Control: private no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0
Connection: keep-alive
Date: Fri, 07 Jul 2023 07:56:58 GMT
Content-Length: 974
Content-Type: text/html
Last-Modified: Thu, 06 Jul 2023 09:14:12 GMT
Accept-Ranges: bytes
ETag: "64a685e4-3ce"
Strict-Transport-Security: max-age=16070400; includeSubDomains

 

All Header That I want to Get

 

Do you guys have any ideas about this?

Thank you.

 

1 Reply

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    aqHttpResponse retrieves HTTP standard request fields and not non-standard request fields. Note, "The aqHttp object is based on the IWinHTTPRequest interface by Microsoft."