I'd like to be able to get a copy of an image that I've seen on a webpage into a image editing/display program. The HTML fragment associated with the image looks like:
<img src='images/theimage.png' border='0'/>
my Perl code to download and save the image looks like:
my $browser =...
How do I get a copy of the CheckForm handler code? I presume that it is somewhere on the HTML page. What language is it written in?
Thanks in advance...
I've written an application using the LWP library that monitors a particular web site for changes in information. This involves having the application log in to the site and repeatedly navigate through a series of web pages to see if any information changes on them, responding appropriately to...
Success! After looking over the available add-ons I downloaded HttpFox. Very helpful. The main problem ended up being the sort of thing that usually trips me up - a stupid syntax error. I had left out the quotes around the names of the hidden input fields in the POST. The corrected code...
No. You misunderstood me. I ran three tests. Before each test I cleared the cookie jar so that the "starting state" of the test would be the same. I did not clear the cookie jar in the middle of a test. The tests were as follows:
(1)Get the login2.asp page:
my $response =...
I have now tried what (I think) you suggested, but am still having problems. Here are the details. Let's call the login page 'https://www.thesite.com/login2.asp'. If I get this page using
my $response = $browser->get('https://www.thesite.com/login2.asp');
then two Set-Cookie lines come back...
Ok. I'll try what you suggested wrt following the Location header and let you know how things go. Looking over some of the notes that I made when I was first trying to get things working, your suggestion is making a lot of sense. I pretty much know barely enough to do useful things in Perl...
It's been a while since I posted my original message on this topic. I've made some progress since then, but I am still having some problems. I initially focused on the second non-optimal way of dealing with the login problem: manually logging and then (also manually) copying over the cookies...
I'll definitely look into Ospy and see what it can do - sounds like it is what I need.
Regarding the 302 message - when I get this I always get redirected to the the logon page, not the page that I know I should get to when I actually have a successful logon. Also, as in the case where I POST...
Yes. I have tried it both ways. If I send the POST to login.asp (instead of login2.asp), then I get a response header with status line '302 Object Moved'. The content is a short HTML page with a link pointing back to login2.asp. So something is not quite right here. That's why I'm imagining...
I am trying to write a Perl application to monitor data on a password protected web site. I am using the Perl & LWP book by Sean Burke as a reference. The website uses a https: login page to get a user id/pin. Once logged in one can navigate around and get various kinds of information that is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.