Ben, is it correct.

The dude as a username and a password and god forbid a submit button as well
to a logn.asp page.

It is not correct, he needs to be pointing to the page that the
login.apspage sends that informartion too.

Yep something is in the water this week.


On 11/3/06, Ben Koshy <[EMAIL PROTECTED]> wrote:
>
> Your approach is correct...however After you use the CFHTTP client to
> login
> then what?   Its only the CFHTTP client that is logged in... not your
> local
> machine or "server".  Dump your CFHTTP.FileContent... what do you
> see?  I'm
> not sure if there's a way to maintain a login using the CFHTTP client.
>
> ----- Original Message -----
> From: "Michael Nguyen" <[EMAIL PROTECTED]>
> To: "CF-Talk" <cf-talk@houseoffusion.com>
> Sent: Friday, November 03, 2006 10:37 AM
> Subject: Using CFHTTP to login
>
>
> > Hi everyone,
> >
> >
> >
> > I am still struggling with using cfhttp to log in into an ASP.NET app.
> >
> >
> >
> > The weird thing is when I used the normal html form (see bellow) then I
> > could log in successfully:
> >
> >
> >
> > <form method="post" action="http://www.mycompany.com/Login.aspx";
> > name="form1">
> >
> >  <input name="CompanyCode" type="hidden" maxlength="12" value=" ccode
> "/>
> >
> >  <input name="UserEmail" type="hidden" maxlength="60" value="
> > [EMAIL PROTECTED] " />
> >
> >  <input  name="UserPassword" type="password" maxlength="50" value="
> > password"/>
> >
> >  <input type="submit" name="SigninBtn" value="Login" />
> >
> > </form>
> >
> >
> >
> > However, when I use cfhttp (bellow) to login then I could not log in:
> >
> >
> >
> > <cfhttp url="http://www.mycompany.com/Login.aspx"; method="post"
> > resolveurl="yes" port="80"
> >
> >     redirect="yes"
> >
> >     useragent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
> 1.8.0.7)
> > Gecko/20060909 Firefox/1.5.0.7">
> >
> >          <cfhttpparam type="formfield" name="CompanyCode"
> value="ccode"/>
> >
> >          <cfhttpparam type="formfield" name="UserEmail"
> > value="[EMAIL PROTECTED]"/>
> >
> >          <cfhttpparam type="formfield"  name="UserPassword"
> > value="password"/>
> >
> >          <cfhttpparam type="formfield"  name="SigninBtn" value="Login"/>
> >
> > </cfhttp>
> >
> >
> >
> > Can anyone tell me how differently the asp.Net treats to these above two
> > approaches and why I couldn't login when using cfhttp?
> >
> >
> >
> > Any help is appreciated.
> >
> >
> >
> > Michael
> >
> >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258977
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to