Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: LWP not working with digest authentication

by ajinkyagadewar (Novice)
on Apr 18, 2012 at 07:49 UTC ( #965662=note: print w/ replies, xml ) Need Help??


in reply to LWP not working with digest authentication

Hi,

I tried to hit the url in code but it doesn't work. As a preliminary check, you can look at headers that need to passed in request as the authentication mechanism is Digest MD5.

Regards, Ajinkya


Comment on Re: LWP not working with digest authentication
Re^2: LWP not working with digest authentication
by sophate (Beadle) on Apr 19, 2012 at 03:42 UTC

    Hi,

    Thanks for your help. The webpage is in a private network. It's actually a web admin page of a vendor product. The web page is provided by Apache Tomcat from What I can see but I think it's kind of a trim-down version of Tomcat(I'm a Tomcat newbie) and I don't see any config files for the Tomat server come with the Vendor product.

    Besides, I changed the domain suffix to asia.dummy.com when I posted the problem here :-)

    I'm trying to create a Perl script to get some information from the web page for the monitoring of the vendor product. The Perl script I used works for some other web pages using Digest authentication but not this one. I've spent hours trouble-shooting but still have no clue what goes wrong . . .

    The web page in question works fine with IE and curl. When I fire the command below, I can get the web page. But the Perl codes I use fail to work . . .

    curl --digest -u admin:admin "http://ty3.asia.dummy.com:8096:8096/application"

      typo in my last message. The curl command should be:

      curl --digest -u admin:admin "http://ty3.asia.dummy.com:8096/application"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://965662]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-12-23 03:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (134 votes), past polls