I am working in SSL using webservice.h. I want to modify the HTTP header information in the request by adding Keyid = "value"

Anonymous
2024-04-23T09:17:25.6866667+00:00

I am working on SSL (using webservice.h). Please find below the request. In the highlighted headers below , I want to add Keyid = "Value". I am trying to do this but not able to get any clue.

User's image

I have tried using WsAddCustomHeader but this is adding the keyid in the soap header and not in the HTTP header. The source code is here :httpCustomerHeaderPurchaseOrderClientExample. There are functions like WsSetHeader, but I do not know how to use them. Can you please suggest some solution to add Keyid = value in HTTP header. Thanks

Windows development | Windows API - Win32
Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
{count} votes

1 answer

Sort by: Most helpful
  1. Tong Xu - MSFT 2,546 Reputation points Microsoft External Staff
    2024-05-02T02:45:08.8533333+00:00

    @Anonymous >

    How to add More HTTP Headers (key, value) pair?

    No. Part of them in http headers are encrypted.
    HTTP Header is defined according to the framework as specified in [RFC2616] section 14.8.
    https://www.rfc-editor.org/rfc/pdfrfc/rfc2616.txt.pdf


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.