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:258952
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