Login  
Search All Forums
Dart Home | PowerTCP Web for ActiveX | Custom Development Reply | PowerTCP Web for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web for ActiveX
Topic: HTTPS, GET, & URL Variables
User1103

Posts: 3
Member Since: 10/24/00
posted October 24, 2000 1:35 PM

I am trying to get a string from a secure webpage using GET and the webpage I am querying is dynamically generated based on the variable that I include in the URL. Is there a problem with using this syntax?

Set powerTCPtool = Server.CreateObject("Dart.Http.1")
powerTCPtool.security=63
powerTCPtool.url="https://www.dart.com/default.cgi?sessionID=9999"
powerTCPtool.get
Set powerTCPtool = Nothing
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted October 24, 2000 1:41 PM


You have to get it into something. Try this:

Dim Content
Content = ""
powerTCPtool.get Content


User1103

Posts: 3
Member Since: 10/24/00
posted October 24, 2000 1:49 PM

Sorry, I forgot to put that piece in my description. I've already got it there, but it still won't work. Do the remainder of my settings look correct?

Call me for a real world example...3108211600 x285
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted October 24, 2000 1:53 PM


Does the following work? Please save this to httptest.asp, place it on your server and call it from a browser. If it does not work, please tell me EXACTLY what messages you get.

<%
Dim Content
Dim Http1
Set Http1 = Server.CreateObject("Dart.Http.1")
Http1.Cache = False
Http1.Url = "http://www.dart.com"
Content = ""
Http1.Get Content
Response.Write Content
%>
User1103

Posts: 3
Member Since: 10/24/00
posted October 24, 2000 2:01 PM

That worked, try this address :http://208.131.56.229/affiliates/cfn/default.asp

Note that it is pulling in the root page of the site and not the actual page listed as the cfnURL.

<%
DIM cfnGUID, cfnSite, cfnURL, cfnResponse, powerTCPtool

cfnGUID = "0101507216"
cfnSite = "https://www.cfntest.com/client/annuities/info/ASGetInfo.cgi?sessionId="
cfnURL = cfnSite & cfnGUID
cfnResponse = ""

Set powerTCPtool = Server.CreateObject("Dart.Http.1")
powerTCPtool.security = 63
powerTCPtool.timeout = 20000
powerTCPtool.url = cfnURL
powerTCPtool.get cfnResponse
Set powerTCPtool = Nothing

%>

<html>
<head>
<title>Untitled Document</title>
</head>
<body bgcolor="#FFFFFF">
<%
response.write "cfnSite=" & cfnSite & "<br>"
response.write "cfnGUID=" & cfnGUID & "<br>"
response.write "cfnURL=" & cfnURL & "<br>"
response.write "cfnResponse=" & cfnResponse & "<br>"

%>

</body>
</html>
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted October 24, 2000 2:21 PM


It get's a page, but since I don't know what your page is supposed to look like I have no idea whether it's correct or not.

This is probably a missing header line issue. I suggest you get a sniffer or protocol analyzer and spy on an IE session. There is probably actually more than 1 request being made and there are probably "Referer" Lines that need to be in the header. I can't tell you exactly what's missing though. That's something you need to determine for yourself.

Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX