I am sorry that I can't post some working code as I suffered a major storm that overwhelmed my surge protection and killed the P/S and a few HD's in my computer. Talk about a BUMMER!

I did have some code that used SSL to log-in to a M$ site with .ASP server pages.

Some basics that I remember:
1. An ASP site will serve up something called the "VIEWSTATE". Use your browser "view source page" to see what this looks like.
2. Example: <input type="hidden" name="__VIEWSTATE" value="dDw3MTg3NjQ5NzQ7dDw7bDxpPDA+Oz47bDx0PDtsPGk8OD47PjtsPHQ8O2w8aTw1Pjs+O2w8dDw7bDxpPDI+Oz47bDx0PHA8bDxWaXNpYmxlOz47bDxvPHQ+Oz4+Ozs+Oz4+Oz4+Oz4+Oz4+Oz7YipIMUB9WWjrfFB7uRaLUHWL6WQ==" />'
3. If YOU are going to talk with this web-site, you send back the the "VIEWSTATE" that it sent you in response to your last POST. The VIEWSTATE will change with every response to you. This requires regex or other magic to extract the VIEWSTATE (not that hard). The basic purpose of this VIEWSTATE is to drive the storage and maintenance of the current state(what page you are looking at, etc) to the client instead of on the server.
Hope this idea helps you proceed...


In reply to Re: Sending data to an ASP link by Marshall
in thread Sending data to an ASP link by natol44

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.