I read that HTTParty uses SSL if the port is set to 443, but I don’t see how to set the port. Can someone clarify this for me?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check the specs:
https://github.com/jnunemaker/httparty/blob/82a90c1b93b076f9d2d7410123c2b5d609401a1f/spec/httparty/request_spec.rb#L41
The target URL is expected to use port 443. Just adding the
:443at the end of the target URI should be enough to make HTTParty use SSL.By the way, HTTPS URLs will use SSL too.
Examples: