Re: WWW::Mechanize question
[email protected] (John SJ Anderson) Tue, 4 Nov 2014 10:21:57 -0800
| Newsgroups | perl.beginners.cgi |
|---|---|
| Message-ID | <CABJ3DF9BEixjwEoSfsUp=ZnRA7w68f3Hh95NoqrGSSKz2qPQjQ@mail.gmail.com> |
well, are you passing the authentication credentials when you create the LWP useragent? IIRC, there's a whole section in the LWP documentation on HTTP basic auth..= . (also, you might want to consider taking your questions over to '[email protected]' -- not sure there are that many people on this list anymore.) j. On Mon, Nov 3, 2014 at 8:41 AM, Patton, Billy N <[email protected]> wr= ote: > I=E2=80=99ve gotten everything copied and working from the Chrome, but wh= en I execute my test script I get : > ok 1 - In sub main::login > ok 2 - : 49 : Credentials passed ok > Error GETing http://cportal-test.dfw0.hypercube-llc.com/html/cp.cgi: Auth= orization Required at /System/Library/Perl/Extras/5.18/LWP/Authen/Basic.pm = line 56. > > Here is my .htaccess : > AuthType Basic > AuthName "HyperCube Customer Portal requires a username and password" > AuthUserFile /var/www/passwords/cportal.passwd > Require valid-user > > > login/password is the same for all versions. > > > I know it is something just one step away, can=E2=80=99t get what it is? > > >> On Nov 3, 2014, at 8:50 AM, John SJ Anderson <[email protected]> wro= te: >> >> Hi Billy - >> >> Are any of the forms in the templates displayed conditionally? (I.e., >> are there forms inside IF blocks in the templates.) >> >> If not -- if all the forms are always shown -- then yes, the numbers >> should be stable. >> >> My suggestion would be to just add unique identifiers to the forms, >> because then you won't have to worry about it. >> >> chrs, >> john. >> >> >> On Mon, Nov 3, 2014 at 6:41 AM, Patton, Billy N <[email protected]>= wrote: >>> I=E2=80=99ve inherited an app that uses templates. >>> Most of the template contain multiple forms and tables within and butto= ns within that. >>> The order of the forms I can get from the template, most are not named = forms so I have to get them with form_number(#) >>> >>> Question: >>> Can I depend on the form number being the same each time it is l= oaded? >>> Or will it change. >