Absent Member.. dsalkin Absent Member..
Absent Member..
480 views

Obtaining a cookie value and then setting in the http header

Jump to solution

Hi,

 

When BSM's Secure Modify setting is enabled, all POST and PUT requests in its API must be secured by setting the X-Secure-Modify-Token HTTP header. First one makes a GET call and then the cookie is downloaded and set.

 

Can anyone advise me how in OO to extract the value of the cookie in the GET operation and then set it as a header in a POST?

 

Many thanks,

 

David Salkin

HP SaaS

Labels (1)
0 Likes
1 Solution

Accepted Solutions
Absent Member.. dsalkin Absent Member..
Absent Member..

Re: Obtaining a cookie value and then setting in the http header

Jump to solution

I'll reply to my own query for anyone who may be interested.

 

Quite simple (thanks Naim!):

1. In the GET operation save the value of the cookie by filtering its value from Result Field: ResponseHeaders

2. Add this value in the POST operation which follows as the input header_X-Secure-Modify-Token

 

Regards,

 

David

0 Likes
1 Reply
Absent Member.. dsalkin Absent Member..
Absent Member..

Re: Obtaining a cookie value and then setting in the http header

Jump to solution

I'll reply to my own query for anyone who may be interested.

 

Quite simple (thanks Naim!):

1. In the GET operation save the value of the cookie by filtering its value from Result Field: ResponseHeaders

2. Add this value in the POST operation which follows as the input header_X-Secure-Modify-Token

 

Regards,

 

David

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.