search for: response_plain

Displaying 2 results from an estimated 2 matches for "response_plain".

2006 Apr 06
2
OpenSSL: SSL_CTX_new:: library has no ciphers
...the /net folder from ruby 1.8.4 in my /lib to support net/https, which doesn''t appear to be present in 1.8.2. http = Net::HTTP.new "www.beanstream.com", 443 http.use_ssl = true http.start { http.request_get("/scripts/process_transaction?" + @data) {|res| @response_plain = res.body } } When I try to run this code, it craps out at the http.start. I''ve tried several iterations and examples; either OpenSSL fails, or 1.8.2 doesn''t support use_ssl and there is no net/https.rb in 1.8.2. Possible solutions: 1. What can I do to make this work on...
2006 Jun 13
2
Getting Remote Response via HTTP
I am trying to query USPS to get shipping rates in my Rails app. I am currently fighting Net:HTTP and so I thought I''d ask for some help. USPS only accepts GET requests, no POST... So, I have something along the following lines: @response_plain = Net::HTTP.get(USPS_SERVER_URL, "/ShippingAPITest.dll?API=RateV2&XML=#{data}") ''data'' is an XML string we generate elsewhere. All I am getting back is: getaddrinfo: No address associated with nodename Which I am guessing is the response from whatever low-level O...