Adrian,

*LOL*.... *LOL*

I think the dude knows that.


Michael, your problem lies with the fact you are connecting to the form
page. That is not what you need to do. What you nned to do is connect to the
processing page that the form is connecting to, and using cfhttp the way you
are pass the username and password but not the submit button.

So, if the asp.net page as you have the form page is connecting (submitting)
to the /abc.asp then that is where your cfhttp needs to point too, with the
same fields as the username and password field that is being inouted on the
asp.net form.

HTH

Some people are jsut so full of useless information (Yes I am refering to
you Adrian) and yes I am being sarcastic to boot with you Adrian.




On 11/3/06, Adrian <[EMAIL PROTECTED]> wrote:
>
> CFHTTP is coldfusion. coldfusion runs on the server. your code will log
> the
> server in.
>
> Do you want to log the server in, or the client in?
>
>
> On 03/11/06, Michael Nguyen <[EMAIL PROTECTED]> wrote:
> >
> > 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:258968
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to