Forum Discussion
VijayG_122615
Mar 12, 2013Nimbostratus
how 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
Mar 13, 2013Employee
Basic 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"
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