473,794 Members | 2,765 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Download a file from a secured Https Server

I tried to develop an application to download a file from an Https server.
My application was able to download a file from a regural Http server.

I used a WebProxy and i passed the NetworkCredenti al, but also it didn't
work like:-
Dim myProxy As New WebProxy("https ://TheServername.c om/", 443)

Also I used that way to create a class to accept all kinds of
certifications, and also it didn't work.

Public Class acceptAllCerts
Implements System.Net.ICer tificatePolicy
Public Function CheckValidation Result(ByVal srvPoint As ServicePoint, _
ByVal cert As X509Certificate , ByVal request As WebRequest, ByVal
problem As Integer) _
As Boolean Implements ICertificatePol icy.CheckValida tionResult
Return True
End Function
End Class

The message I am receiving is "The ServicePointMan ager does not support
proxies of https scheme."

Does anyone have any idea how to solve this?
Does anyone have any valid script to download a file from a secured Https
server?

May 18 '06 #1
2 2601
On Thu, 18 May 2006 11:31:02 -0700, Nader Shahin
<Na*********@di scussions.micro soft.com> wrote:
I tried to develop an application to download a file from an Https server.
My application was able to download a file from a regural Http server.

I used a WebProxy and i passed the NetworkCredenti al, but also it didn't
work like:-
Dim myProxy As New WebProxy("https ://TheServername.c om/", 443)

Also I used that way to create a class to accept all kinds of
certifications , and also it didn't work.

Public Class acceptAllCerts
Implements System.Net.ICer tificatePolicy
Public Function CheckValidation Result(ByVal srvPoint As ServicePoint, _
ByVal cert As X509Certificate , ByVal request As WebRequest, ByVal
problem As Integer) _
As Boolean Implements ICertificatePol icy.CheckValida tionResult
Return True
End Function
End Class

The message I am receiving is "The ServicePointMan ager does not support
proxies of https scheme."

Does anyone have any idea how to solve this?
Does anyone have any valid script to download a file from a secured Https
server?


I wrote an app in VB6 back in 2000 part of which deals with
downloading weather images from the web. Some images require
credentials (user, password) and a few are on SSL sites (https:).
At that time I found a complete example on MSDN which showed how to
handle credentials when required and the SSL (https:) downloads using
the WinInet library. I rewrote this app a few months ago in VB2005.
Although WebClient works fine for the normal http requests, I never
could make it work for requests requiring credentials and found no
info on how to handle https. So, I wound up reworking/converting that
old example to work in VB2005 (works OK).

That particular example link and most others from that era are no
longer found on MSDN. However, you can find info, there, on WinInet.
It looks like that old example code is there, but in bits and pieces.

Gene
May 20 '06 #2
gs
don't know if this helps
http://www.vbdotnetheaven.com/Upload...ntGateway.aspx
"gene kelley" <ok**@by.me> wrote in message
news:4u******** *************** *********@4ax.c om...
On Thu, 18 May 2006 11:31:02 -0700, Nader Shahin
<Na*********@di scussions.micro soft.com> wrote:
I tried to develop an application to download a file from an Https server.
My application was able to download a file from a regural Http server.

I used a WebProxy and i passed the NetworkCredenti al, but also it didn't
work like:-
Dim myProxy As New WebProxy("https ://TheServername.c om/", 443)

Also I used that way to create a class to accept all kinds of
certification s, and also it didn't work.

Public Class acceptAllCerts
Implements System.Net.ICer tificatePolicy
Public Function CheckValidation Result(ByVal srvPoint As ServicePoint,
_
ByVal cert As X509Certificate , ByVal request As WebRequest, ByVal
problem As Integer) _
As Boolean Implements ICertificatePol icy.CheckValida tionResult
Return True
End Function
End Class

The message I am receiving is "The ServicePointMan ager does not support
proxies of https scheme."

Does anyone have any idea how to solve this?
Does anyone have any valid script to download a file from a secured Https
server?


I wrote an app in VB6 back in 2000 part of which deals with
downloading weather images from the web. Some images require
credentials (user, password) and a few are on SSL sites (https:).
At that time I found a complete example on MSDN which showed how to
handle credentials when required and the SSL (https:) downloads using
the WinInet library. I rewrote this app a few months ago in VB2005.
Although WebClient works fine for the normal http requests, I never
could make it work for requests requiring credentials and found no
info on how to handle https. So, I wound up reworking/converting that
old example to work in VB2005 (works OK).

That particular example link and most others from that era are no
longer found on MSDN. However, you can find info, there, on WinInet.
It looks like that old example code is there, but in bits and pieces.

Gene

May 20 '06 #3

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

Similar topics

5
1880
by: Ed Jaffe | last post by:
All: 1) Could any one show me any website which is using asp, ssl, sql server? 2) Is ASP/IIS technology good enough to create a commerical secured internet web application? 3) People said most of the secured internet web application (e.g. banking...) is using java, is that true? Simon
0
3045
by: Chuck Anderson | last post by:
I am writing a Php script to run on my home PC (Windows) that downloads an Apache access log file and inserts new entries into a database.. The only way I can access these log files is through a cPanel URL that delivers a gzipped copy of the log file with all entires for the current month (up to the current date and time). I want to run this script once a day (at night) and would like to download the gzipped file by resuming from where...
2
1269
by: TJS | last post by:
does ASP.net have a way to secure a delimited text file download ?
5
12310
by: Neil Rossi | last post by:
I have an issue with a particular ASP page on two web servers. Let's call these servers Dev1 and Beta1. Both Servers are running IIS 5, Windows 2000 SP4 with "almost" all of the latest patches. On Beta1, I am able to execute a particular page with no problem, that page opens up in the comes up just fine. On Win2kdev1, when I go to execute the same page, it opens a file download dialog and asks me whether I want to open or save the...
2
3022
by: Daniel Frechette | last post by:
Hi, Is it possible to have secured (SSL/HTTPS) and non-secured (HTTP) content in the same page without breaking the security? I am developing a secured reservation system in which the user can access Google Maps (not secured). The map is embedded in the page and does not open in a separate window. What solution do you recommend? Use iframes? If so, how?
1
1386
by: trihanhcie | last post by:
Hi, I have a <img src = "http:// ..."> which needs to be put in a secured page. For example on amazon when the confirmation page is displayed... The problem is that it's a secured page (https) and my tag is an absolute path... It looks like it's the problem because the tag is not secured. What are the possible solution to display the image without the warning message? Thanks
4
5055
by: Nader Shahin | last post by:
I tried to develop an application to download a file from an Https server. My application was able to download a file from a regural Http server. I used a WebProxy and i passed the NetworkCredential, but also it didn't work like:- Dim myProxy As New WebProxy("https://TheServername.com/", 443) Also I used that way to create a class to accept all kinds of certifications, and also it didn't work.
1
9877
by: Chad T | last post by:
I am very new to VB.Net (most of my experience is with vbscript) My goal is to create a executable to download files from a HTTPS server. I have to pass the credentials to the https server. The code below works fine on our IIS server configured for https but when I connect to a remote server running "IBM_HTTP_Server/2.0.47.1-PK29827 Apache/2.0.47 (Win32) Server" The error I get is Unauthorized... My Error: The remote server returned an...
3
11498
by: laredotornado | last post by:
Hi, This problem only affects PC IE. On a secured page (a page visited via https), there is a link that reads -- "Download HTML File". The link connects to this page <?php require("../../util_fns.php"); session_start();
0
10433
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10161
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10000
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9035
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6777
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2919
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.