473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

SSL/Response Object/data to client

This may not be the right group for this since the ASP part of the equation
seems to be working as it should, but at the very least perhaps someone will
point me to the correct group or even better, a solution.

I've been using the following technique to return a recordset from a web based
SQL Server to my app.

ASP (no HTML):

<%Option Explicit%>

<!--#include file="inc/asp_head.asp" -->
<!--#include file="inc/asp_connect.asp" -->
<%Dim rs: Set rs = cn.Execute("get_SomeData " &
LikePhrase(ValidateInputString(Request.QueryString ("ShowTitle"),"")))
rs.Save Response: rs.Close: Set rs = Nothing: cn.Close: Set cn = Nothing%>

VB app:

rs.Open "http://" & frmMain.IP_Main & "/someASP.asp?ShowTitle=" &
URLEncode(frmMain.ShowTitle)

At this point the app can use the recordset that was passed
through the Response object just like any other recordset.

The problem comes about when attempting to use https in place of http. As I
said, the ASP shows every indication of working since I can see the data in a
browser window but the recordset is empty/non-existent in the client app. I've
tried the URL= as in rs.Open "URL=https://... and found docs that seem to
indicate that this worked in the days of RDS, but I've been unsuccessful in
googling anything appropriate. Can anyone shed any light on this or offer an
alternative methodology to obtaining data securely from the Internet?
---
Stefan Berglund
Jul 22 '05 #1
3 1757
Have you tried saving in XML format as the following example does?

http://msdn.microsoft.com/library/de...p3senddata.asp

also try just echoing the raw data from within the vb app to see what is
actually being sent (use XMLHTTPRequest to get data instead of recordset).
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Stefan Berglund" <ke****@in.thegroups> wrote in message
news:kc********************************@4ax.com...
This may not be the right group for this since the ASP part of the equation seems to be working as it should, but at the very least perhaps someone will point me to the correct group or even better, a solution.

I've been using the following technique to return a recordset from a web based SQL Server to my app.

ASP (no HTML):

<%Option Explicit%>

<!--#include file="inc/asp_head.asp" -->
<!--#include file="inc/asp_connect.asp" -->
<%Dim rs: Set rs = cn.Execute("get_SomeData " &
LikePhrase(ValidateInputString(Request.QueryString ("ShowTitle"),"")))
rs.Save Response: rs.Close: Set rs = Nothing: cn.Close: Set cn = Nothing%>
VB app:

rs.Open "http://" & frmMain.IP_Main & "/someASP.asp?ShowTitle=" &
URLEncode(frmMain.ShowTitle)

At this point the app can use the recordset that was passed
through the Response object just like any other recordset.

The problem comes about when attempting to use https in place of http. As I said, the ASP shows every indication of working since I can see the data in a browser window but the recordset is empty/non-existent in the client app. I've tried the URL= as in rs.Open "URL=https://... and found docs that seem to
indicate that this worked in the days of RDS, but I've been unsuccessful in googling anything appropriate. Can anyone shed any light on this or offer an alternative methodology to obtaining data securely from the Internet?
---
Stefan Berglund



Jul 22 '05 #2
On Mon, 21 Mar 2005 12:58:22 -0800, "Mark Schupp" <no****@nospam.com> wrote:
in <#R**************@TK2MSFTNGP10.phx.gbl>
Have you tried saving in XML format as the following example does?

http://msdn.microsoft.com/library/de...p3senddata.asp

also try just echoing the raw data from within the vb app to see what is
actually being sent (use XMLHTTPRequest to get data instead of recordset).


Yes, I tried it and I got the same results. The data is being sent since I can
plug the URL into a browser window and see the beautifully formatted XML or raw
data (in my example), but the VB app is not getting any data. I get "The
connection cannot be used to perform this operation. It is either closed or
invalid in this context." If I remove the s from https it works in both cases.

I just tried the same experiment using the URLDownloadToFile API and I'm getting
the same results. It must be a firewall issue on the receiving end. Thanks.
---
Stefan Berglund
Jul 22 '05 #3
On Mon, 21 Mar 2005 12:58:22 -0800, "Mark Schupp" <no****@nospam.com> wrote:
in <#R**************@TK2MSFTNGP10.phx.gbl>
Have you tried saving in XML format as the following example does?

http://msdn.microsoft.com/library/de...p3senddata.asp

also try just echoing the raw data from within the vb app to see what is
actually being sent (use XMLHTTPRequest to get data instead of recordset).


The error code returned in both cases is 800C0008.

This could be applicable:
Transfer-Chunk Encoding (Including ASP) May Cause 800c0008 Error
http://support.microsoft.com/support.../q177/2/31.asp

or optionally it's an authentication error:
Guide To Error 800C0008 In Windows Media Player.
http://msmvps.com/chrisl/articles/10905.aspx

At any rate, I'll find an alternative method for accomplishing this. I suppose
I could encrypt the credit card info before it's stored in the database, send
the encrypted data via http and have the app decrypt it.
---
Stefan Berglund
Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Russ | last post by:
My web app writes some binary data to a file at the client site via Response.Write and Response.BinaryWrite. This action is accomplished in response to a button click, with C# code behind as...
4
by: Christian Wilhelm | last post by:
Hi! I have a Problem understanding the deserialisation of SOAP-Responses. The "normal" way, calling a XML WebService is to use WSDL 1) Send Request 2) Get SOAP-Response 3) With Informations...
7
by: Railinc | last post by:
Hi... I'm trying to write a web service client and am running into a problem with getting a response back from the server. I know that a full xml message is being returned (thanks to a tcp/ip...
4
by: Mike Kansky | last post by:
I have an image.aspx that does the following: if request("s")=1 then response.redirect(http://www.domain.com/image1.gif) else response.redirect(http://www.domain.com/image2.gif) end if And...
4
by: mike.biang | last post by:
I have an ASP page that is using an XMLHTTP object to request various pages from my server. I keep a single session throughout the XMLHTTP requests by bassing the ASPSESSIONID cookie through the...
5
by: twiggy182 | last post by:
Hi, I really need you help because I'm not very familliar with ASP and I could not find any solution to my problem. To put you in situation, I have a CGI to which I send a file name, and that...
2
by: Michael D. Ober | last post by:
When I single step through the code below, it sends back the PDF file that is retrieved in the line fm.GetAccountPDF(...). When I run without single stepping, I get the master page for this page. ...
5
by: =?Utf-8?B?RmFtaWx5IFRyZWUgTWlrZQ==?= | last post by:
I'm sorry, but I've read your code a couple of times and just don't see where the Form1 is initialized. Form1 also sounds like a class name, and this would be how you could do some form operations...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.