+3 votes
I have a script where I am making a request to get my access_token. In order to use Token based security I need to pass that token in an "Authorization" header record as value "bearer [token]". I need to do this as a WebPost or WebPostFromFile. Is there a way to do this?
asked Aug 12, 2016 in QA Wizard Pro by trizzo (230 points)
Example Script:

Dim result
result = WebPostFromFile("URL","application/x-www-form-urlencoded","authenticate.txt")

*Authenticate.txt contains the proper credentials to get a qualified token*

 

Dim token
token = (JSONObjectGetValue(result,"access_token"))

*Parse the token out*

 

Dim request
request = WebPostFromFile("URL",application/xml","data.xml")

***I need to pass the Authorization header on the request above, with the token***

***Authorization: bearer [token]***

1 Answer

0 votes
FYI: As per Seapine Support this functionality is not possible at this time.
answered Aug 17, 2016 by trizzo (230 points)
248 questions
262 answers
106 comments
2,037 users