Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am trying to make an http call to the WebSphere PMI servlet. Websphere has security enabled and therefore I am asked to enter user credentials in order to display the xml. What actually doesn't work as I expect is that username and password in the url are not recognized and the BASIC authorization form is displayed. Obviously it doesn't work from a third party application point of view, I need to pass those variables as GET request.

Any suggestion?

share|improve this question
    
We have found a work around, instead of passing parameters into the url (as docs described) we used basic authentication on client. –  AleIla Jul 23 '09 at 13:37

1 Answer 1

Sounds like it's not using basic authentication... perhaps cookie session based... what are you hitting it with? wget? curl? perl?

There are perl modules that can emulate a browser and you can write a script to navigate thru the login and fetch the XML you want. Google 'perldoc WWW::Mechanize'

Would love to hear of solutions that require less module installation, however.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.