Re: generating requests

2001-03-22 Thread Tim Allwine
Dave Faraldo wrote: > > > Why should anyone make requests with HTTP::Request->new? Why not just use > > HTTP::Request::Common's GET and POST functions? > > The GET and POST functions are "syntactic sugar" -- under the hood, > they use HTTP::Request->new(), too -- so I suppose it's a matter > o

Re: Problem submitting a form

2001-03-22 Thread Dave Faraldo
Try adding a 'use LWP::Debug qw(+);' to see what your script is doing. (Did it get the right URL? Is it posting the correct form data? Is it sending the login cookie? Etc.) For instance, if you really used 'blah.cfm' in your second request, you would indeed get 404 Not Found. :-)

Re: generating requests

2001-03-22 Thread Dave Faraldo
> Why should anyone make requests with HTTP::Request->new? Why not just use > HTTP::Request::Common's GET and POST functions? The GET and POST functions are "syntactic sugar" -- under the hood, they use HTTP::Request->new(), too -- so I suppose it's a matter of taste. You might not want to us

Re: Trouble getting site

2001-03-22 Thread Christoph Wernli
John W Cunningham wrote: > > I'm having trouble pulling a certain site. Ordinarily this script works > perfectly, but it just doesn't want to retrieve this site. What am I doing > wrong? There are actually three problems: > print &WWWget("http://registrar.ucdavis.edu/CSRD/spring2001/(AAS).htm