Ok the first Test worked!!.I'm happy.
This is the last test!!. Does anybody is receving this
question I 'm writing down here????.
regards Mario

Hi friends:
I'm trying to log into a site remotely using CFHTTP.
The login.asp redirect me to the home page if
everything is OK.
The problem is that the internal URL in the asp code
seems to be
relative.
and I'm getting back a 302 code.
Is there any parameter that I can pass in the CFHTTP
to overcome this
problem??.
I'm posting down here the coldfusion code and what I'm
getting in the
browser.
Thanks in advance friend.

/*Coldfusion Code*/
<cfhttp  RESOLVEURL="Yes" 
REFERER="http://admin.elementk.com/Login/login.asp";
REDIRECT="No"
USERAGENT="Mozilla/4.0 (compatible; MSIE 6.0 Windows
NT 5.1; Q312461)"
METHOD="POST"
URL="http://admin.elementk.com/Login/login.asp"; >
<cfhttpparam NAME="f_strUserName" TYPE="FormField" 
  VALUE="#myusername#">
<cfhttpparam NAME="f_strPassword" TYPE="FormField" 
  VALUE="#mypassword#">  
<cfhttpparam NAME="f_flgProcess" TYPE="FormField" 
  VALUE="1">    
 <cfhttpparam NAME="Login" TYPE="FormField" 
  VALUE="1">   
</cfhttp>


/*What I see in the browser*/
!--- This example is to test the login ---> Connection
Failure 
The mime-type:

text/html

The Status Code:

302 Moved Temporarily

The Raw Header:

HTTP/1.1 302 Object moved Server: Microsoft-IIS/4.0
Date: Tue, 02 Apr
2002 21:49:15 GMT Location: /Home/home.asp Connection:
Keep-Alive
Content-Length: 135 Content-Type: text/html
Set-Cookie:
ZDUSMSK=%14W%2D%2C%2B%2E%2C%5DZB%5BYZVB%5E%5E%2BYB%2DYYVB%5F%5FZ%5FW%2DVZZW%5B%5F%12;
path=/ Cache-control: private

Output the Response Headers:


--------------------------------------------------------------------------------
CACHE-CONTROL : private
CONNECTION : Keep-Alive
CONTENT-LENGTH : 135
CONTENT-TYPE : text/html
DATE : Tue, 02 Apr 2002 21:49:15 GMT
EXPLANATION : Object
HTTP_VERSION : HTTP/1.1
LOCATION : /Home/home.asp
SERVER : Microsoft-IIS/4.0
Cookie : 
%14W%2D%2C%2B%2E%2C%5DZB%5BYZVB%5E%5E%2BYB%2DYYVB%5F%5FZ%5FW%2DVZZW%5B%5F%12
SET-COOKIE : 
ZDUSMSK=%14W%2D%2C%2B%2E%2C%5DZB%5BYZVB%5E%5E%2BYB%2DYYVB%5F%5FZ%5FW%2DVZZW%5B%5F%12;
path=/
STATUS_CODE : 302

_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to