in reply to Sending data to an ASP link
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...
|
|---|