Comments on: Send a HTTPS POST request with C# http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/ I will not fix your computer. Tue, 04 Aug 2020 22:34:33 +0000 hourly 1 https://wordpress.org/?v=4.7.26 By: Nyerguds http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/#comment-300546 Mon, 14 Mar 2016 07:55:23 +0000 http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/#comment-300546

@ Luke Maciak:
That whole line displays an appaling lack of text encoding awareness, actually. You use ascii, of all things; that strips out any nonstandard characters. Not even utf-8, the de facto standard, or ISO-8859-1, which is known for preserving the actual bytes no matter what.

See The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)

Reply  |  Quote
]]>
By: Fix: Could not establish trust relationship for SSL/TLS secure channel — SOAP #dev #development #solution | Good Answer http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/#comment-203717 Tue, 30 Dec 2014 18:45:28 +0000 http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/#comment-203717

[…] Luke’s Solution […]

]]>
By: How to: Could not establish trust relationship for SSL/TLS secure channel — SOAP | SevenNet http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/#comment-193337 Mon, 08 Dec 2014 01:20:38 +0000 http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/#comment-193337

[…] Luke’s Solution […]

]]>
By: Michael http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/#comment-184869 Wed, 19 Nov 2014 14:50:47 +0000 http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/#comment-184869

hey

I want to be logged in to wigle.net the help of your code, but it does not work for me on this page, you may know why.

Reply  |  Quote
]]>
By: david http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/#comment-134692 Tue, 09 Sep 2014 15:14:20 +0000 http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/#comment-134692

Came for the code, leave saying that I agree that c# is waaaaaay to verbose compared to other languages.

Reply  |  Quote
]]>
By: cusman http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/#comment-27792 Tue, 26 Feb 2013 21:49:54 +0000 http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/#comment-27792

BenN wrote:
New code to do the same thing, without using the obsolete CertificatePolicy property –

System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; };

This works perfectly. No MyPolicy class required. Thanks

Reply  |  Quote
]]>
By: Optimus13 http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/#comment-25276 Mon, 31 Dec 2012 10:50:45 +0000 http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/#comment-25276

Hi. Nice blog. It really helped me out .
But I am facing an issue on POST -ing something to the SSL enabled server.
Error message 401.3: You do not have permission to view this directory or page using the credentials you supplied.

While debugging, when the POST is sent, your code is executed and it returns the ‘true’ value. On coming back to POST, it throws an exception as shown above. Any inputs?

Thank You!

Reply  |  Quote
]]>
By: BenN http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/#comment-24593 Tue, 11 Dec 2012 12:53:35 +0000 http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/#comment-24593

New code to do the same thing, without using the obsolete CertificatePolicy property –

System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; };

Reply  |  Quote
]]>
By: Shyama Deo http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/#comment-22829 Sat, 04 Aug 2012 15:34:39 +0000 http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/#comment-22829

Hello, I think your blog might be having browser compatibility issues.
When I look at your blog in Safari, it looks fine but when
opening in Internet Explorer, it has some overlapping.
I just wanted to give you a quick heads up! Other then that, wonderful blog!

Reply  |  Quote
]]>
By: mahendra varandani http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/#comment-22077 Tue, 01 May 2012 08:11:37 +0000 http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/#comment-22077

Hi luke
Tahnks for the article.. but i had a secure connection site,which accept the data only if the URL contain the username and password:
eg:
https://username:password@ip.com?post_data

and it is giving me the error :
The remote server returned an error: (401) Unauthorized.
on line:
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
please assist me….

Reply  |  Quote
]]>