RE: :mechanize issues/mechanize.pm dies!!

2004-06-02 Thread bruce
hi.. i'm havin an issue with the following script. it uses www::mechanize and appears to die when i use the word/var ANT for one of the form inputs. the test script demonstrates getting information from the test site using both LWP and mechanize. the LWP approach works, the mechanize fails. any

[PATCH] Make URI::sip honor the new_abs(), abs(), rel() contract

2004-06-02 Thread Ville Skyttä
URI::sip(s) does not honor the URI API contract of returning the original URI if it cannot be made absolute in new_abs() or abs(), or relative in rel(). Fix along with a couple of test cases attached. Index: URI/sip.pm === RCS file:

RE: :mechanize issues/mechanize.pm dies!!

2004-06-02 Thread Nicholas S Zambo
Bruce, I don't think that this is a problem with mechanize or your code. Looking at the html of the site in question I see this: select name=u_input size=1 option selected-Choose a Department-/option option value=ADPIBAAdult Degree Program/option

LANG

2004-06-02 Thread Gedanken
if i need to provide more info let me know: basically there appears to be a special html variable called LANG. however, some of the sites i use mech on use this as a regular variable such as www.mysite.com/cgi-bin/myscript.pl?id=123year=2004LANG=english etc mechanize cant follow such

RE: :mechanize issues/mechanize.pm dies!!

2004-06-02 Thread bruce
darrell... thanks for the reply... i had started to think something along the same thing... as far as i can tell.. it's the only place were that occurs... so i'll put that one to rest... but since you repsonded, i have a www::mechanize question... i'm looking at the utexas austin site..

Re: :mechanize issues/mechanize.pm dies!!

2004-06-02 Thread Andy Lester
On Wed, Jun 02, 2004 at 12:11:22PM -0700, bruce ([EMAIL PROTECTED]) wrote: the underlying html, implies that there is some method that they're using to send multiple forms? Yes, there are two forms. Look at: $ mech-dump

RE: :mechanize question....

2004-06-02 Thread bruce
hey andy..!!! 'appreciate your response... but i'm stil confused as to how/if i can use mechanize to handle both forms... how in the $*^^(*#@ would this be accomplished!! any samples you can point me to that do something like this... i've played with mechanize on a few other apps.. but nothing

RE: :mechanize question....

2004-06-02 Thread Gedanken
Im jumping in here late so this may be way off but: my $agent = WWW::Mechanize-new(); $agent-get(someURL); $agent-form(1) # or form(2) or form(name=logonform2) etc $agent-field(variablename, $myvalue); $agent-submit(); apologies if this super basic summary is way off the mark of what was

RE: :mechanize question....

2004-06-02 Thread bruce
not sure if you're late or not!! the basic issue i'm concerned about is how i go about submitting both forms at the same time.. or do i need to... the html implies that i do... but i have no idea as to how.. -bruce -Original Message- From: Gedanken [mailto:[EMAIL PROTECTED] Sent:

RE: :mechanize question....

2004-06-02 Thread bruce
ok.. so if i can only submit one.. should it matter which one i choose!! oh.. i found the mech-dump.. thanks!! gotta learn how to type! -bruce -Original Message- From: Andy Lester [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 12:28 PM To: Gedanken Cc: bruce; [EMAIL

RE: :mechanize issues/mechanize.pm dies!!

2004-06-02 Thread Darrell Gammill
Look back a the output of 'print $b-current_form()-dump();' Do you see where the option for 'Anthropology' appears by itself? This is because the HTML is not being parsed right. The following line seems to be the offender: option value=ANT Name=AnthropologyAnthropology/option

Re: :mechanize issues/mechanize.pm dies!!

2004-06-02 Thread Gisle Aas
Darrell Gammill [EMAIL PROTECTED] writes: Look back a the output of 'print $b-current_form()-dump();' Do you see where the option for 'Anthropology' appears by itself? This is because the HTML is not being parsed right. The following line seems to be the offender: option