|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
VeriSign Code Signing Digital Certificates provides assurance to end users. Read about this and more in the free white paper: “How to Digitally Sign Downloadable Code for Secure Content Transfer.” Learn More! |
|
#1
|
|||
|
|||
|
Hi there,
I am trying to log in to a site on my intranet to grab some information to be displayed on another section of the intranet. Unfortunately, the site I'm trying to grab the info from (a list of people away from work today) is in ASP. I don't know much about asp and have just picked up CF after a long vacation...If you can help me out at all it would be fantastic... I've copied my code below: <cfhttp url="http://bandicoot/connx/frmFramesetMain.aspx" username="00225" password="danatconnx" method="post" useragent="Mozilla/4.0(compatible; MSIE 5.5; Windows NT 5.0)"> <cfhttpparam type="formfield" name="__EVENTTARGET" value=""> <cfhttpparam type="formfield" name="__EVENTARGUMENT" value=""> <cfhttpparam type="formfield" name="__VIEWSTATE" value="dDwtM... "> </cfhttp> <cfset startPoint=Find('ASP.NET_SessionId=', CFHTTP.header) + 18> <cfset endPoint=Find('; path=/', CFHTTP.header)> <cfset aspSessionId=Mid(CFHTTP.header, startPoint, endPoint - startPoint)> <cfhttp url="http://bandicoot/connx/frmFramesetMain.aspx" method="post" username="00225" password="danatconnx" useragent="Mozilla/4.0(compatible; MSIE 5.5; Windows NT 5.0)"> <cfhttpparam type="formfield" name="__VIEWSTATE" value="dDwtMjEw... "> <cfhttpparam type="cookie" name="ASP.NET_SessionId" value="#aspSessionId#"> </cfhttp> header<br> <cfoutput>#cfhttp.header#</cfoutput><br> file content<br> <cfoutput>#cfhttp.filecontent#</cfoutput><br> What gets returned is: <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> header<br> HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Thu, 18 Nov 2004 01:07:30 GMT X-Powered-By: ASP.NET X-AspNet-Version: 1.1.4322 Cache-Control: private Content-Type: text/html; charset=utf-8 Content-Length: 93<br> file content<br> <BODY><ASP_SMARTNAV_RDIR url="/connx/frmLoginSessionTimeout.aspx"></ASP_SMARTNAV_RDIR></BODY><br> </body> </html> Which looks like the session variable isn't working properly as it's being redirected to a timeout page. Now, I can't get into the ASP as it's run by another department and they won't let me touch it...and I don't even know if this is possible... Any Ideas? Thanks heaps. |
|
#2
|
||||
|
||||
|
Probably what's happening now is that it's re-directed and all screwed up as a result.
You could always set some session variables of your own in CF and then try to go exactly where you want to. Unfortunately to do this, you'll have to see their code so that you can figure out what they name their variables and what the app is specifically looking for. Can't we stop the fussin' and the feudin'? |
|
#3
|
|||
|
|||
|
Quote:
Unfortunately not...I probably wouldn't know what I was looking for anyway as I know very little (read, nothing..) about ASP. I have tried setting some variables to try and fool the ASP, <cfhttpparam type="cookie" name="ASP.NET_SessionId" value="#aspSessionId#"> which was grabbed from the header of the first cfhttp tag but there seems to be more that I can't identify which are making it die. Somebody out there must've done something like this before no? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Problem logging into asp site |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|