in reply to Re: Need help with HTTP::Proxy
in thread Need help with HTTP::Proxy
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Need help with HTTP::Proxy
by planetscape (Chancellor) on Jul 05, 2006 at 14:12 UTC | |
Super Searching for "Proxy Authentication Required" yields the following: I would probably start there and see if any of those suggestions help. My boilerplate advice for dealing with WWW::Mechanize issues is: I would try using a module such as HTTP::Recorder or WWW::Mechanize::Shell to record a successful manual form submission. The output of HTTP::Recorder, for instance, can be "dropped" right into your WWW::Mechanize scripts (leira's article that I mentioned above tells you how). Another important tool for finding out what is really happening behind the scenes between server and browser is a protocol analyzer such as Ethereal. If none of those suggestions helps, try posting your entire script as a reply here - censoring any sensitive details such as username/password, of course... And let us know more about your environment... HTH,
planetscape
| [reply] |
by Anonymous Monk on Jul 10, 2006 at 07:18 UTC | |
Hi planetscape,
1. Everytime i start my office desktop, I am required to logon to the NT domain in order to gain access to the Intranet. On Windows IE, I am required to set the company's proxy address and port number in order to get out to the Internet. 2. What I would like to do is to run a perl script that is able to access an Intranet web page where I can then hopefully proceed to fill in some fields in form. Here's a cut and paste of my code:
And here's the printout from the Proxylog.Log file after running the script:
...something here which i think not important..
Please help... been tearing up my hair over this trying to figure it out by myself...
20060710 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips | [reply] [d/l] [select] |
by planetscape (Chancellor) on Jul 10, 2006 at 18:14 UTC | |
Ok... I am not an expert here, but I fail to see why you are using HTTP::Proxy in your program when you are already running a remote proxy... Have you tried Corion's or shmem's advice above? I really think that what you want to do is follow the instructions here: on how to use WWW::Mechanize via a proxy server... HTH,
planetscape
| [reply] |
by Anonymous Monk on Jul 10, 2006 at 07:31 UTC | |
Sorry, let me write that out in a proper format: Hi planetscape, I've been searching through the perlmonks website and tried some of their recommendations but still could not seem to work. Maybe I should start from the beginning and hope this helps: 1. Everytime i start my office desktop, I am required to logon to the NT domain in order to gain access to the Intranet. On Windows IE, I am required to set the company's proxy address and port number in order to get out to the Internet. 2. What I would like to do is to run a perl script that is able to access an Intranet web page where I can then hopefully proceed to fill in some fields in form. Here's a cut and paste of my code:
And here's the printout from the Proxylog.Log file after running the script:
20060710 Janitored by Corion, again: Added formatting, code tags, as per Writeup Formatting Tips | [reply] [d/l] [select] |