Encoded URL login and website interaction

Robert Sawko <[email protected]>
Newsgroups gmane.comp.web.curl.php
Message-ID <[email protected]>
Dear All,

would you please advise me me upon a cURL/PHP login script? I have
seen quite a few similar posts in many areas of the Internet but I
could not find an answer. Possibly, due to my unacceptable ignorance
in the arts of HTTP/PHP so please assume only very basic knowledge on
my part. Anyway, if you believe this post is repetitive I would be
obliged for references.

My ultimate goal is to prepare a script that would renew my loans from
the library. Some of the books are week only loans but library web
page provides a way of renewing. The library still sends a recall
message if somebody else requests a book. I simply don't want to renew
the books every week.

I looked at some of your script and modified it so that eventually
came out with a version that I attach with this e-mail.

My main concern is that the output is identical if I give wrong
credentials. How can I move from this point? How do I deal with
session id? The location of the login script is also encoded and
changes every time enter the website. Do I have to take this into
account?

I also attach the headers that I capture when I login. Note the random
characters in URL. I would greatly appreciate any comments, hints or
references.

Best wishes,
Robert

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
renew_headers (application/octet-stream, 1.4 KB) - not displayed
script (application/octet-stream, 6.6 KB) - not displayed
login_headers (application/octet-stream, 1.4 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.