ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old November 17th, 2004, 11:24 PM
cfmaz cfmaz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 2 cfmaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Problem logging into asp site

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.

Reply With Quote
  #2  
Old November 18th, 2004, 05:10 PM
bocmaxima's Avatar
bocmaxima bocmaxima is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2004
Location: Tucson, Sonora
Posts: 1,316 bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 16 h 48 m 13 sec
Reputation Power: 22
Send a message via AIM to bocmaxima
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'?

Reply With Quote
  #3  
Old November 18th, 2004, 11:22 PM
cfmaz cfmaz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 2 cfmaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by bocmaxima
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'?

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?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Problem logging into asp site


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway