Net:HTTP questions

Hi

I’m writing a script that will bootstrap a database with extensive data
that we’ll be using for all our unit testing.

To do this we’re harnessing all the scripts we’ve built on the server
side (in Java / Javascript using Webscripts and Freemarker templates).

So I want to get a better idea how to do HTTP PUT / DELETE requests
using Net:HTTP.

I REALLY want to stick to using the HTTP calls to the pre-existing REST
based URLs so I just ask you keep this in mind.

All the examples I see are using GET and POST but our whole ‘backend’ is
REST enabled so this is insufficient.

I"m sure I’m just missing something small in the DOCS but I can’t seem
to find what I’m looking for.

Thanks for any help / references you can provide.

John

On 15.01.2010 04:46, Jean N. wrote:

I"m sure I’m just missing something small in the DOCS but I can’t seem
to find what I’m looking for.

Thanks for any help / references you can provide.

How about this?
http://rdoc.info/projects/archiloque/rest-client

You should be able to use PUT and DELETE if you dig deep enough into
rest-clients sources.

N.B.: I haven’t used rest-client.

Phillip G. wrote:

On 15.01.2010 04:46, Jean N. wrote:

How about this?
http://rdoc.info/projects/archiloque/rest-client

You should be able to use PUT and DELETE if you dig deep enough into
rest-clients sources.

N.B.: I haven’t used rest-client.

Excellent thanks.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs