I am sending httpwebrequests to the paypal api server and this uses https. I did the normal things that you normally do with http requests, and it worked. Do I need to do anything special to properly use https, or is specifying https in the request URL enaugh to make it work?
Thanks!
Btw my requests are being sent from my server, so it isn't as important to encrypt them as if they where being sent from the client computer, but still I want to do it right.
Simply swapping http with https is fine enough while using HttpWebRequest
. It requires no special handling for https requests.
Changing the URL to https should be enough provided that there are no issues with the certificate.
SSL will check for 3 things when it comes to certificates:
Of these criteria, #3 is the most commonly failed check. You can programatically ignore any or all of these errors (at your own risk). Here is an example on how to do that.
That said, if this is for the Paypal api, you should not have any certificate errors.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With