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 as expected. plese help. Thanks.
4 Replies
Sort By
- nitass
Employee
can you post the irule? and what does "not working" mean indeed?? - VijayG_122615
Nimbostratus
- nitass
Employee
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_Stewart
Employee
Basic 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