Forum Discussion
VijayG_122615
Nimbostratus
Mar 12, 2013how to insert Basic Authorization into http header while redirecting
Hi ,
i am trying to insert a common user id and pwd intp "Basic Authorization" of http header and redirect the same to new url. tired HTTP::header insert Authorization cmd but it isnt working ...
Kevin_Stewart
Employee
Mar 13, 2013Basic authentication is a base64-encoding of the username and password:
ex.
demoAdmin:demoAdmin = ZGVtb0FkbWluOmRlbW9BZG1pbg==
So to set this in a header, just do this:
set basicdata [b64encode "demoAdmin:demoAdmin"]
HTTP::header insert Authorization "Basic $basicdata"
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
