Hi,
can someone give example how to use multiple header fields along with content-type with 6.43.12 and 6.44rc1?
Tnx,
W
Hi,
can someone give example how to use multiple header fields along with content-type with 6.43.12 and 6.44rc1?
Tnx,
W
you can now specify many headers, separated by comma:
http-header-field=h1:fff,h2:yyy
So for some services that require authentication to push some data it would look something like this:
http-header-field=Content-Type:application/json,X-Auth-Token: <token_id>
Is this correct? Does it require “” for contents under http-header-type? I’m pretty sure I tried this yesterday but got error on execution (Expected end of line something)
I’ll test this again today and let you know.
so to answer my own question it doesn’t require headers to be enclosed into quotations. Just no spaces.
Hi! Does anyone know how you can add a header that has a space inside? For example: http-header-field=Authorization:Basic test123
Thank you!
http-header-field="Header1: Value1,Authorization: Basic dXNlcjpwYXNz"
But for basic authentication you can also use:
user=user password=pass
Hi!
I managed to do it: http-header-field=“content-type:application/json,Authorization:Basic SomeString1234” and it works!
Thank you!