curl-users
Re: re maintaining creds
Date: Fri, 7 Apr 2006 13:31:36 -0500
You have a form named "submit_signon" which contains a single hidden
variable. The javascript that comes immediately after the form does
a submit as soon as the script is executed. You need to extract the
variable name (in case it ever changes), the variable value and the
action url. Stick them all together as you would normally:
curl -d $name=$value $url
(assuming a unix environment) with extra bits for cookie tracking,
saving the next page, etc.
Ralph Mitchell
On 4/7/06, Blurry <obsfucate_at_gmail.com> wrote:
> Any ideas ? This is the page I get once the login is accepted, I just
> need to figure out how to navigate to the page the browser takes you
> to after this.
>
> <head>
> <title>Web :: Single Sign-On :: </title>
> </head>
>
> <body>
>
> <form action="http://xweb.foo.edu/cweb/login_ldap.asp" method="post"
> name="submit_signon">
> <input type="hidden" name="id_num" value="1073351616">
> </form>
>
> <script language="javascript">
> <!--
> if (document.submit_signon.Submit) {
> document.submit_signon.Submit();
> }
> else {
> document.submit_signon.submit();
> }
> -->
> </script>
>
>
> </body>
>
>
Received on 2006-04-07