Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Use LWP::UserAgent to go to a password protected ASP page

by ranjan_jajodia (Monk)
on Aug 10, 2005 at 05:09 UTC ( [id://482514]=note: print w/replies, xml ) Need Help??


in reply to Use LWP::UserAgent to go to a password protected ASP page

Hi,
You can also use Charles while accessing the asp page to see what exactly goes to the http server and what comes back. This has helped me a number of times in pin pointing the errors.
Regards,
Ranjan

--Let Logic Rule--
  • Comment on Re: Use LWP::UserAgent to go to a password protected ASP page

Replies are listed 'Best First'.
Re^2: Use LWP::UserAgent to go to a password protected ASP page
by Puma_perl (Acolyte) on Aug 10, 2005 at 14:47 UTC
    Dear Ranjan:

    I did download and run Charles to monitor my internet traffic. However, Charles only records internet activities through proxy server. When I start to run Charles, it automatically set my IE to use proxy server. The url that I have problem with are only accessible through "Automatically detect settings" with LAN settings for IE. Therefore, with Charles is running, I got the same error message from IE browser as I got from my perl script.

    So, my guess is that the web server for my problematic url doesn't recognize connection of client through proxy. Am I right? If so, what's the solution for this?

    Thanks again!

    Puma_perl

      Hmmm,
      It is going to be difficult then. I can think of two things (I may be wrong totally):

      1) See if adding cookies to the user agent solves it. You can use HTTP::Cookies
      2)Try to make your useragent appear as IE or Firefox. I am not sure if it legal. Sincere apologies if it is illegal. Don't try until you figure that out. Regarding how to do it it should be something like,
      $ua->agent("Mozilla/4.76 [en] (Windows NT 5.0; U)");

      That is all that comes to my mind. Monks can any one help us on this.

      Ranjan

      --Let Logic Rule--

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2024-04-18 10:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found