473,386 Members | 1,706 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,386 software developers and data experts.

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 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.

Public Class acceptAllCerts
Implements System.Net.ICertificatePolicy
Public Function CheckValidationResult(ByVal srvPoint As ServicePoint, _
ByVal cert As X509Certificate, ByVal request As WebRequest, ByVal
problem As Integer) _
As Boolean Implements ICertificatePolicy.CheckValidationResult
Return True
End Function
End Class

The message I am receiving is "The ServicePointManager 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 2575
On Thu, 18 May 2006 11:31:02 -0700, Nader Shahin
<Na*********@discussions.microsoft.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 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.

Public Class acceptAllCerts
Implements System.Net.ICertificatePolicy
Public Function CheckValidationResult(ByVal srvPoint As ServicePoint, _
ByVal cert As X509Certificate, ByVal request As WebRequest, ByVal
problem As Integer) _
As Boolean Implements ICertificatePolicy.CheckValidationResult
Return True
End Function
End Class

The message I am receiving is "The ServicePointManager 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.com...
On Thu, 18 May 2006 11:31:02 -0700, Nader Shahin
<Na*********@discussions.microsoft.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 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.

Public Class acceptAllCerts
Implements System.Net.ICertificatePolicy
Public Function CheckValidationResult(ByVal srvPoint As ServicePoint,
_
ByVal cert As X509Certificate, ByVal request As WebRequest, ByVal
problem As Integer) _
As Boolean Implements ICertificatePolicy.CheckValidationResult
Return True
End Function
End Class

The message I am receiving is "The ServicePointManager 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
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...
0
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...
2
by: TJS | last post by:
does ASP.net have a way to secure a delimited text file download ?
5
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. ...
2
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...
1
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)...
4
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...
1
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...
3
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...

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.