RE: 'POST' method leads to "411 Length Required"

2009-04-22 Thread bruce
hey i'm not sure of your favorite browser... but if it's firefox, i would suggest you load a plugin called livehttpheaders (i think). this allows you to see exactly what's happening between the browser/server so you can see what's needed from the client side when you're attempting to create a

Display progress or partial results in browser window

2005-11-25 Thread Bruce McKenzie
k and Perl FAQ, but the material dealing with IPC seems geared to running from the command line. Is there a basic tutorial that covers forking thing somewhere? Thx, Bruce -- Bruce McKenzie http://www.2MinuteExplainer.com

RE: Is LWP the right module to use?

2005-03-18 Thread bruce
anita, can you be more specfic in exactly what you want to do. lwp, along with other perl mods can be setup to deal with cookies, and to return information from a given web page. -Original Message- From: Robert Barta [mailto:[EMAIL PROTECTED] Behalf Of Robert Barta Sent: Friday, March 18

RE: Website thinks Mech is MSIE < 4.0

2004-08-26 Thread bruce
#x27;ve already verified that you are getting what the mozilla plugin is showing, then you're on the right track... if you haven't then you need to be able to more or less examine the headers with the mods/tools that i indicated... also, check out the sample script i sent you... -bruc

RE: :UserAgent and cookie_jar

2004-08-26 Thread bruce
joe the following sample perl might be usefull... the pieces of code might/should help... i'm including the entire apps so you can get a feel for what they're doing.. the 1st app gets into the utaustin.edu site and extracts information. this site requires the use of a user/passwd.. the code i

RE: libwww-perl and .NET

2004-07-16 Thread bruce
andrew... can you access/fetch the page at all... in other words can you create a basic lwp function that returns any of the page.. show us your test script and the page you're trying to get... -bruce -Original Message- From: Potozniak, Andrew [mailto:[EMAIL PROTECTED] Sent: F

RE: Viewing exchange between browser and website

2004-07-15 Thread bruce
t should point out to you how you can access a user/passwd site.. for you to actually run the script... you'd have to get your own passwd/user and search/replace the following lines within the script.. ==>>> my $username="x"; ==>>> my $password="nnn&qu

using a 'PUT' with www::mechanize

2004-06-30 Thread bruce
to do is to be able to allow mechanize to accept PUT as a valid action within a form, without dying... any thoughts/comments/criticisms as to how to accomplish this.. thanks -bruce

RE: cookie question....

2004-06-30 Thread bruce
z = ". $key ."\n"; } my %hdr = $res->headers()->{'set-cookie'}; foreach $key (keys (%hdr)) { my $qq = $key; print " test k = ". $hdr{$key} ."\n"; } #print " ss ="[EMAIL PROTECTED]"\n"; print " x\n"; $cook

cookie question....

2004-06-30 Thread bruce
have a cookie/array, although i can't figure out how to read it.. but using the extract_cookie method, doesn't seem to save the cookie to my cookie.txt file... there's something simple that i'm missing... any comments/pointers/criticisms

RE: url/query question...

2004-06-28 Thread bruce
on... This is nothing to do with win32, so I've cut that list from the To: line. On Sun, 27 Jun 2004, bruce wrote: [...] > i was under the impression that if i concatenated the url and the > content/query from the headers, that i'd be able to "simulate" the submit What

url/query question...

2004-06-27 Thread bruce
ou were limited with regards to the size of the content/query portion of the URL... am i missing something...??? i'm inclined to slam the content into the query portion of a ua->content() and se what happens comments/criticisms welcome.. -bruce

RE: possible mechanize issue

2004-06-27 Thread bruce
-but select "Aerospace Engineering" (submit) <mailto:[EMAIL PROTECTED] Sent: Sunday, June 27, 2004 8:11 AM To: bruce Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: possible mechanize issue On Jun 26 bruce wrote: > i'm parsing the gatech class schedule section. Is the gatec

possible mechanize issue

2004-06-26 Thread bruce
t;BIOL", 2); my $res1 = $agent->submit(); print "-- ".$agent->content(). "\n"; my $url2 = $agent->response()->request()->content(); # # go ahead and return the complete "post" url # #return($url2); my $q1 = $agent->uri()."?".$url2; print "url = $q1\n"; a sample of the form select/option list follows... Accounting Aerospace Engineering Air Force Aerospace Studies Applied Physiology Architecture Biology Biomedical Engineering is this a possible error/issue given how the site functions.. is it a possible issue/error with mechanize... (i somehow doubt that it is, as i've used mechanize with other sites with no probs...) i tried to do a download from CPAN to see if there is a newer version of Mechanize, but it appears that I have the latest version... although i might not.. any ideas/comments/possible solns... thanks -bruce

RE: url/querystring question...

2004-06-25 Thread bruce
t "cont len = ". $agent->response()->request()->content_length(). "\n"; print "cont = ". $agent->response()->request()->content(). "\n"; print "req = ". $agent->response()->request()->as_string(). "\n"; print "---

url/querystring question...

2004-06-25 Thread bruce
erystring that's actually created/used... i'm assuming that the information is somewhere in the headers...??? thanks -bruce

am i missing something... libwww/mechanize question

2004-06-19 Thread bruce
amp;searchCriteria=-&criteriaDesc= and i get the same page that i'm getting with my sample routines... i'm running on linux rh8.0 with perl 5.8. my gut tells me if i can get wget to work (or vice versa).. i'd be ok... it's got to be something simple that i'm

www::mechanize - accessing return headers...

2004-06-18 Thread bruce
i can't seem to make any headway. Any thoughts/comments, will be appreciated. Sample code/segments would also be helpful. Thanks... -bruce

RE: an issue/error/problem...

2004-06-17 Thread bruce
$url1 = $url1 . $q_string; print "here $url1 \n"; $ua = new LWP::UserAgent; $ua->timeout(30); $ua->agent("Mozilla/4.0 (compatible; MSIE 4.01; Windows95)" . $ua->agent); $req_ = new HTTP::Request GET => $url1; $req_->content_t

an issue/error/problem...

2004-06-17 Thread bruce
x27;m willing to bet that i have a simple/subtle mistake, but i can't seem to find it... i've rewritten the app/functions a number of time, thinking that i may have a typo somewhere, or some other screwup... any help/comments will be appreciated... thanks... -bruce sample code ##

form completion question- lwp/mechanize - possible issue

2004-06-10 Thread bruce
chiganstate.pl line 67 <<<<<=== regardless of what i insert after "Monday" as a value, it dies... so my question.. how can this situation be resolved... what should really be returned to the server... or am i hosed??? thoughts/comments/appreciated... thanks... -bruce

RE: frame question- lwp/mechanize

2004-06-10 Thread bruce
->field('Off Campus'); $agent->field('Online Courses'); $agent->field('Study Abroad'); $agent->submit(); print "-- ".$agent->content(). "\n"; die -----

frame question- lwp/mechanize

2004-06-10 Thread bruce
mit a form on the frame (foo), and read the results that are displayed in another frame (dog). thanks... -bruce

lwp/perl keep_alive..

2004-06-09 Thread bruce
;?Semester=FALL%202004&CrseLoc=AA%3A%3AAltoona%20Campus" . "&CECrseLoc=&CourseAbbrev=0&CrseAlpha=a%2Dc&CourseNum=0"; $req->content($cstr3); $agent = $ua->request($req); print "---\n"; print "agent->code = ". $agent->code(). "\n"; print "agent->msg = ". $agent->message(). "\n"; print "agent->base = ". $agent->base. "\n"; print "agent->hdr = ". $agent->headers_as_string(). "\n"; print "agent->cont = ". $agent->as_string. "\n"; #print "agent->req = ". $agent->request(). "\n"; die; not sure as to how it should be implemented... thanks for any insight... -bruce

libwww questions/issue..

2004-06-09 Thread bruce
ially sends a "..main_search.cfm.. which is redirected towards ..act_main_search.cfm...to finally .../fall/aa/a-c/index.html.." the overall issue i have is how to set this up using libwww/mechanize/etc... thanks... -bruce

quirky question....

2004-06-07 Thread bruce
s some kind of redirection/session function in the background... i also tried enabling/disabling cookies with no difference in behavior... thanks... -bruce

installing perl mods...

2004-06-05 Thread bruce
oad the item in question, simply references to it.. in fact, i migh talready have it as part of xml::libxml.. so basically, how do i find xml::libxml::node and how do i install it??? thanks... -bruce -Original Message----- From: bruce [mailto:[EMAIL PROTECTED] Sent: Saturday, June 05, 2

Re: libxml questions...

2004-06-05 Thread Bruce Miller
bruce wrote: mark, the following is close. i played around with a number of different approaches, and i have a basic question... ### my @sectionTRs = $doc->findnodes('//[EMAIL PROTECTED]"sectionheading"]]'); foreach $section (@sectionTRs) {

RE: libxml questions...

2004-06-05 Thread bruce
element to html... or am i essentially hosed!! the basic reason for the question is to try and be able to switch between using libxml/xpath and treebuilder methods as i'm parsing html docs... searches of google/cpan haven't turned up a working solution... thanks.. -bruce

libxml questions...

2004-06-04 Thread bruce
hi... starting to explore libxml.. i have a question (the 1st of many, i'm sure!!) i'm trying to parse the following.. and trying to get the text after the ... but i'm not sure how to access it.. i can get the information within the .. any help would be useful... thanks... the sample html is:

more specific html parsing question..

2004-06-03 Thread bruce
ying to do for now, and what has me stymied... it appears that this should be realtively straightforward, but i must be missing something! thanks -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 6:25 AM To: 'Darrell Gammill

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

2004-06-03 Thread bruce
o be having an issue with my approach given that both tags are "spans".. any way to separate them... i can get the "FOUNDATIONS..." by simply looking at $span_tree[1], but $span_tree[0] appears to contain both spans.. any way to separate them... any ideas/comments/criticisms/etc.. would be appreciated... thanks -bruce

minor issue.... with html::treebuilder

2004-06-02 Thread bruce
quot; @0.1.1.0.0.0.2.1.0.0.0.3.1.0.0.0.1 "FOUNDATIONS OF ACCOUNTING" i appear to be having an issue with my approach given that both tags are "spans".. any way to separate them... i can get the "FOUNDATIONS..." by simply looking at $span_tree[1]...., but $span_tree[0] appears to contain both spans.. any way to separate them... any ideas/comments/criticisms/etc.. would be appreciated... thanks -bruce

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 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 PROTE

RE: :mechanize question....

2004-06-02 Thread bruce
ther apps.. but nothing like this... thanks.. -bruce oh..and where would mech-dump be located.. i'm assuming that it's command line app/script -Original Message- From: Andy Lester [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 12:12 PM To: bruce Cc: 'Darre

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

2004-06-02 Thread bruce
t it would have been doable, by sending the EID/passwd, and possbily the CDT, NEW_PASSWORD, CONFIRM_NEW_PASSWORD, and PASSWORDS values... but i'm not sure any comments/criticisms/help/etc.. is appreciated... thanks -bruce the

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

2004-06-02 Thread bruce
$b->field("term", $default_semester); $b->field("division", $default_div); $b->field("u_input", $curdept); $b->field("sortby", $default_sort); $b->field("order", $default_order); #open(F, ">out.html"); #print F $b->submit()->content(); #close(F); # &parse_file(); print "uuu ".$default_semester." ".$default_div." ".$curdept." ". $default_sort." ".$default_order."\n"; die; ### thanks... bruce

www::mechanize issues

2004-05-29 Thread bruce
erstanding as to how they work... thanks bruce

test

2004-05-29 Thread bruce
Bruce Douglas (