# Net:HTTP questions

**URL:** <https://www.ruby-forum.com/t/net-http-questions/181638>\
**Category:** Ruby\
**Created:** [January 15, 2010, 4:46am UTC](https://www.ruby-forum.com/t/net-http-questions/181638 "2010-01-15T04:46:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeannibee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/85e7bf/32.png) [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Post date:** [January 15, 2010, 4:46am UTC](https://www.ruby-forum.com/t/net-http-questions/181638/1 "2010-01-15T04:46:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jeannibee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/85e7bf/32.png) [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Post date:** [January 15, 2010, 5:01am UTC](https://www.ruby-forum.com/t/net-http-questions/181638/2 "2010-01-15T05:01:06Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![jeannibee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/85e7bf/32.png) [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Post date:** [January 15, 2010, 5:04am UTC](https://www.ruby-forum.com/t/net-http-questions/181638/3 "2010-01-15T05:04:36Z")

</div>

Phillip G. wrote:

> On 15.01.2010 04:46, Jean N. wrote:
> 
> How about this?  
> [http://rdoc.info/projects/archiloque/rest-client](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.
