Forum Discussion
Richard__Harlan
Jan 31, 2006Historic F5 Account
(401)Authorization Required with JAVA
Starting to work on a new Java site to interface with the BigIP. Everything we try to run it we get a 401 error back. The user is and passowrd are fine. It just will not work. Attach are some code sni...
Feb 23, 2010
the http[s]://[userid:[password]@server/uri is not a standard format. It's something that was implemented for some early browsers and the java libraries seem to have supported it. The clients that do support it will try to extract user:pass from before an "@" symbol in the hostname field and then convert that to the appropriate request authentication headers. Odds are the Ruby libraries do not do this. You'll have to find out how the ruby libraries pass credentials with the HTTP Requests and configure those credentials with your user:pass. Wish I could give you more details but I very much a noob with Ruby. I do know users are using it though so it can be done. Please post if you get a solution so others can know how you did it.
-Joe
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