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

Sriram Mahalingam (Contractor) 0 Reputation points
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 API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,498 questions
Windows Network
Windows Network
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Network: A group of devices that communicate either wirelessly or via a physical connection.
696 questions
{count} votes

1 answer

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

    @Sriram Mahalingam (Contractor) >

    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