Is there away to verify in a request header that weather http or https was sent

goofy78270goofy78270 Posts: 93

I am looking to create some logs based on the actual traffic, and was wondering if there was a way to determine if a request was sent using http or https, within a script. I know I can pull the initial url, but I was looking for more of a header option, internal value like input.get("Request HTTP Headers"), or such.

Best Answer


  • jakubiakjakubiak Posts: 671 admin

    You cannot check anything in the HTTP header, since the HTTP header is identical between HTTP and HTTPS. When using SSL, the transport changes but the HTTP headers and payloads do not.

  • benken_parasoftbenken_parasoft Posts: 895 ✭✭✭

    See my comment in this other thread:
    get Data From Traffic Viewer Object

    I think you can get the endpoint URL (which includes the protocol) using input.get(SOAPUtil.END_POINT).

  • goofy78270goofy78270 Posts: 93

    @jakubiak - is it possible to capture just the transport method, rather than having to parse to url? That is more what I am looking for.

Sign In or Register to comment.