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 as expected. plese help. Thanks.
- nitassEmployeecan you post the irule? and what does "not working" mean indeed??
- VijayG_122615Nimbostratus
- nitassEmployee
i understand HTTP::header insert will insert header to request toward pool member (server) but HTTP::redirect sends response back to client telling where the new location is. i mean they work in opposite direction.
- Kevin_StewartEmployeeBasic authentication is a base64-encoding of the username and password:
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