--000e0cd66e6eec3daf04a0d528bb
Content-Type: text/plain; charset=ISO-8859-1

Hi.

You can try Mechanize, it works for me like a charm.

On Wed, Apr 13, 2011 at 2:11 PM, Stuffe L. <stuffe.dk / gmail.com> wrote:

> Hello everyone
>
> I am new to ruby and have been struggeling with this http api thing. I
> need to do a request with certian request headers, certain post
> variables and SSL.
> I got it to work with SSL and the headers, but I just cant get it to
> work when i try to cenvert it to post. Very frustrating.
>
> Heres how far i got (this is without post, which i couldnt get to work):
>
>  post_me  xml data'
>
>  headers  'Header' 'Whatever'}
>  uri  RI.parse("https://example.com")
>  http  et::HTTP.new(uri.host, uri.port)
>  http.use_ssl  rue
>  http.verify_mode  penSSL::SSL::VERIFY_NONE
>  response  ttp.post(uri.request_uri, get_string, headers)
>
> Any help very much apreciated
>
> --
> Posted via http://www.ruby-forum.com/.
>
>


-- 
Oscar Sosa

--000e0cd66e6eec3daf04a0d528bb--