Hi monks,
my boss asked me to write a perl skript. That should be able to log on using a https get request (SSL encoded). Within the get request I sen a username and password. After that I receive a session id and two asp coockies.
The next step is, to send a https post request, using the two coockies, the sessionid and a secret phrase.
The whole action has to happen within one session. (I mentioned the session id before).
You might say, that their are a bit paranoid. Never the less, gattering this information is legal, of course.
I tried using LWP::UserAgent, HTTP::Request::Common, Net::SSL, LWP::Protocol::https, Crypt::SSLeay, URI::https, HTTP::Request, HTTP::Cookies, HTTP::Headers and LWP::ConnCache.
But I could not use the coockies, nor save them to hard disk.
Providing all the source code, would obviously be to long.
The https requests, etc. are working, but the coockies are really enervating.
Is there is a simple method, how this can be done.
Cheers
Alexander
20050317 Edit by castaway: Changed title from 'How can I store asp coockies'
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.