cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: re maintaining creds

From: Blurry <obsfucate_at_gmail.com>
Date: Fri, 7 Apr 2006 14:48:37 -0400

thanks. I am using a cygwin envir on win, so its unix like, so I would
take this page and parse out from

>> <form action="http://xweb.foo.edu/cweb/login_ldap.asp" method="post"
> > name="submit_signon">
> > <input type="hidden" name="id_num" value="1073351616">
> > </form>

 value and name ie
1073351616 and id_num
and then do
curl -d id_num=1073351616 http://xweb.foo.edu/cweb/login_ldap.asp

I know I could try it, but I am only given 5 minutes of access per day
(yes ludicrous, and at 14000bps... ) to try, so I need to have my
ducks in a row.

Thanks again.

On 4/7/06, Ralph Mitchell <ralphmitchell_at_gmail.com> wrote:
> 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