Hi,
Specifically, the website I am trying to access is, https://gmail.google.com/
I've read elsewhere that Google only uses SSL2, while .NET uses SSL3
and is not backward compatible. Is this true?
In any case, I want to know how this problem can be solved. The code
I'm using is dead simple,
HttpWebRequest req;
HttpWebResponse res;
req = (HttpWebRequest)HttpWebRequest.Create("https://gmail.google.com");
res = (HttpWebResponse)req.GetResponse();
Any help would be greatly appreciated. Thanks.
Cheers,
Steven 4 5011
Simply implement ICertificatePolicy in your class and return true from the
'CheckValidationResult' method
HTH,
Alex
"Steven Pu" <re******@gmail.com> wrote in message
news:5b*************************@posting.google.co m... Hi,
Specifically, the website I am trying to access is,
https://gmail.google.com/
I've read elsewhere that Google only uses SSL2, while .NET uses SSL3 and is not backward compatible. Is this true?
In any case, I want to know how this problem can be solved. The code I'm using is dead simple,
HttpWebRequest req; HttpWebResponse res;
req = (HttpWebRequest)HttpWebRequest.Create("https://gmail.google.com"); res = (HttpWebResponse)req.GetResponse();
Any help would be greatly appreciated. Thanks.
Cheers, Steven
Trebek wrote: Simply implement ICertificatePolicy in your class and return true from the 'CheckValidationResult' method
I doubt that this will help in case the underlying protocol is not
supported. Does it?
--
Joerg Jooss jo*********@gmx.net
Hi Alex,
To tell you the truth, I really have no idea how this works - I'm
pretty new at this.
After looking up ICertifcatePolicy, I really don't see how it helps
me. My guess is that the reason HttpWebRequest fails is due to some
kind of error/incompatibilities of the request itself, so shouldn't I
be changing some properties of the request object? How does
ICertificatePolicy come in?
Thanks.
Cheers,
Steven
"Trebek" <tr****@nospam.com> wrote in message news:<Ux***************@fe37.usenetserver.com>... Simply implement ICertificatePolicy in your class and return true from the 'CheckValidationResult' method
HTH,
Alex
"Steven Pu" <re******@gmail.com> wrote in message news:5b*************************@posting.google.co m... Hi,
Specifically, the website I am trying to access is,
https://gmail.google.com/
I've read elsewhere that Google only uses SSL2, while .NET uses SSL3 and is not backward compatible. Is this true?
In any case, I want to know how this problem can be solved. The code I'm using is dead simple,
HttpWebRequest req; HttpWebResponse res;
req = (HttpWebRequest)HttpWebRequest.Create("https://gmail.google.com"); res = (HttpWebResponse)req.GetResponse();
Any help would be greatly appreciated. Thanks.
Cheers, Steven
Hi Steven,
It wont help you if you create your own CertificatePolicy class that
accepts all certificates. The problem really is that Microsoft for
some strange reason only implemented SSL 3.0 support in
HttpWebRequest.
As you mentioned, Google runs SSL 2.0, hence the only solution is to
use another HTTP component.
I first tried PocketHTTP, which is free, and it worked really great
until i needed to do a HTTP Post with content type
"multipart/form-data". I then switched to the "IPWorks SSL V6 .Net
Edition" component (400$) and i haven't had any problems since.
Regards,
Peer re******@gmail.com (Steven Pu) wrote in message news:<5b*************************@posting.google.c om>... Hi Alex,
To tell you the truth, I really have no idea how this works - I'm pretty new at this.
After looking up ICertifcatePolicy, I really don't see how it helps me. My guess is that the reason HttpWebRequest fails is due to some kind of error/incompatibilities of the request itself, so shouldn't I be changing some properties of the request object? How does ICertificatePolicy come in?
Thanks.
Cheers, Steven
"Trebek" <tr****@nospam.com> wrote in message news:<Ux***************@fe37.usenetserver.com>... Simply implement ICertificatePolicy in your class and return true from the 'CheckValidationResult' method
HTH,
Alex
"Steven Pu" <re******@gmail.com> wrote in message news:5b*************************@posting.google.co m... Hi,
Specifically, the website I am trying to access is,
https://gmail.google.com/
I've read elsewhere that Google only uses SSL2, while .NET uses SSL3 and is not backward compatible. Is this true?
In any case, I want to know how this problem can be solved. The code I'm using is dead simple,
HttpWebRequest req; HttpWebResponse res;
req = (HttpWebRequest)HttpWebRequest.Create("https://gmail.google.com"); res = (HttpWebResponse)req.GetResponse();
Any help would be greatly appreciated. Thanks.
Cheers, Steven This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Isaac Martinez |
last post by:
Hello all,
I have to make a small app that will do the following.
1. Connect to a webserver and get a directory listing.
2. I have to download each file in the specified directory.
3. Once...
|
by: WATYF1 |
last post by:
Hello. I'm writing a VB.NET app to check email message counts for both
POP3 and IMAP4. I'm using TCPClient to connect, and a NetworkStream to
send simple commands. It's a very simple bit of code,...
|
by: Hardik Shah |
last post by:
Hi,
I am calling an ASP.Net page from an ASP classic application but need
the .Net page to have access to ASP classic's session variables. I am
using HTTPWebRequest to call ASP classic page...
|
by: Jason |
last post by:
I'm having a hard time getting a call to HttpWebRequest's
GetRequestSteam to work. Each time I try to run it, I get the
following error:
The underlying connection was closed: Unable to...
|
by: japslam japslam via DotNetMonster.com |
last post by:
Hi all,
I have problem when I use HttpWebRequest and take long time to call to my
service server. If at that time there are many request comes in
semultaneous, I will get this exception
...
|
by: |
last post by:
Hi all,
HttpWebRequest, and SoapHttpClientProtocol both expose a
ClientCertificates property, which can hold multiple client certificates,
but on the service side, it can only receive one client...
|
by: Dave |
last post by:
What is the benefit of using "as" vs the other?
HttpWebRequest myReq
= (HttpWebRequest)WebRequest.Create("http://www.contoso.com/");
vs.
HttpWebRequest myReq...
|
by: David G |
last post by:
My company has a Webservice that is currently running in production. It is
secured using SSL and clients are authenticated using X509 certificates.
I am able to consume the Webservice methods in...
|
by: Medtondo |
last post by:
I have an app that uses the events in IE (SHDocVw). I can get the
DownloadComplete event etc working well, but what I would like to do is get
the SSL key that IE is using for the session. What I...
|
by: Jeff |
last post by:
ASP.NET 2.0
I'm working on a asp.net 2.0 website which needs to access a database on
another server via an request. This database is placed on another server
which is not based on ASP.NET, but...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
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: 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...
|
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,...
|
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...
| | |