Login  
Search All Forums
Dart Home | PowerTCP SSL for ActiveX | Custom Development Reply | PowerTCP SSL for ActiveX Topics | Forums   
AuthorForum: PowerTCP SSL for ActiveX
Topic: Downloading files with SSL Tool seem to just hang
nexea

From: Maumelle, AR USA
Posts: 5
Member Since: 11/18/03
posted November 18, 2003 3:57 AM

I am using a standard HTTP connection string with the SSL Tool to download files on a SSL server. Everything works fine until I try to download an exe.

For some reason, it seems to just hang right after it has sent me the headers for the file.

No other file types are giving me this problem, and Internet Explorer can download the file just fine. The HTTP syntax is fine, followed by two vbCrLfs.

I need to be able to download executables from my program with this tool.. any pointers would be appriciated.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted November 18, 2003 8:47 AM

That should work OK. Do you have a link to a file on a server where it fails? Or does it happen with IIS?
nexea

From: Maumelle, AR USA
Posts: 5
Member Since: 11/18/03
posted November 18, 2003 4:30 PM

The file itself is on an Apache web server.

I was wondering, do you have to change the HTTP syntax differently when you download octet exe streams from a server on SSL?

My syntax is as follows:

GET /download/program.exe HTTP/1.0
Accept: */*
Host: www.mysite.com
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; UpdaterProg 01.00.002; .ZET 1.0.3705)
[vbCrLf][vbCrLf]

Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted November 18, 2003 4:35 PM

What's the exact reply from the server in that case?

If you could give me a url I could probably solve this in about 20 minutes.
nexea

From: Maumelle, AR USA
Posts: 5
Member Since: 11/18/03
posted November 18, 2003 4:44 PM

Oh, I'm sorry:
https://bbn.datakill.com/download/bbn_deppack.exe
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted November 18, 2003 5:24 PM

When I try to get that file via manual HTTP commands, I get a 404 response (file not found).

It looks to me like you need to add a header line that IE uses ( like "Host:" maybe? )


nexea

From: Maumelle, AR USA
Posts: 5
Member Since: 11/18/03
posted November 18, 2003 7:52 PM

Here is the corrected connection string:

GET /download/bbn_datakill.exe HTTP/1.0
Accept: */*
Host: bbn.datakill.com
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0)
[vbCrLf][vbCrLf]

This should cause the error on SSL. The file is valid in normal http as well, so it works without the https://.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted November 19, 2003 9:43 AM

Either way worked fine for me. When you do the secure request, are you switching the protocol to secureAuto? Are you using port 443 as the port?

nexea

From: Maumelle, AR USA
Posts: 5
Member Since: 11/18/03
posted November 19, 2003 3:46 PM

I first initiate the protocol with autoSecure, then tell it to connect to bbn.datakill.com at port 443.

Does that connection string work for you just the way I posted it?

After the headers are sent, the Receive event is no longer triggered.. can you verify if it sends the entire file on your end?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted November 19, 2003 3:59 PM

I was able to get it when I posted. However the file has since been moved. When that happens, you'll have to parse the moved location and use that.

You might want to try to use the Trace method to see what's actually being sent and received:

SecureTcp1.Trace "trace.log", True, True, vbCrLf + "---> ", vbCrLf + "<--- "
Reply | PowerTCP SSL for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX