ruby - HTTPS and HTTParty - Timeout and EOF -
I am trying to post something in an HTTPS resource, but it seems that it does not work.
My code looks like this:
requires the 'httparty' class in the MyClass HTTParty base_uri "https://mydomain.com:8085/search" The basic_auth 'admin', 'changeme' format is included: Xml def mymethod self.class.post ('/ job',: query = & gt; {: search = & gt; "*"}) End End
As you can see, if I defined a URL with 'I', then it should automatically set the use_ssl property to the Net :: HTTPS library. For some reason, Net :: HTTP is requested, and I never contact the server, so I end up with an EOF.
Any clues?
read
"HTTPS is in. If Port 443 , It automatically goes to https. "
Comments
Post a Comment