# Httprequest on server side... activeResource?

**URL:** <https://www.ruby-forum.com/t/httprequest-on-server-side-activeresource/126898>\
**Category:** Rails\
**Created:** [January 23, 2008, 8:06am UTC](https://www.ruby-forum.com/t/httprequest-on-server-side-activeresource/126898 "2008-01-23T08:06:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabru](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c0e974/32.png) [@gabru](https://www.ruby-forum.com/u/gabru)\
**Post date:** [January 23, 2008, 8:06am UTC](https://www.ruby-forum.com/t/httprequest-on-server-side-activeresource/126898/1 "2008-01-23T08:06:47Z")

</div>

hello all,  
i try to use google’s geocoding service

> **[Google Haritalar Platformu Belgeleri
  
  |  Maps JavaScript API...](https://developers.google.com/maps/documentation/javascript?csw=1&hl=tr)**
>
> Google Haritalar Platformu Dokümanları

it lets me call an url with a given address and receive information like  
e.g. latitude, longitude, etc.

now i was wondering whats the best solution to call this within a rails  
project.

- is there something like a low level httprequest object
- can i use an activeresource for it?
- i dont want to use it with AJAX, because i need to progress a lot of  
addresses

thx for your thoughts…

---

<div class="post-metadata">

**Author:** ![gabru](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c0e974/32.png) [@gabru](https://www.ruby-forum.com/u/gabru)\
**Post date:** [January 23, 2008, 11:17am UTC](https://www.ruby-forum.com/t/httprequest-on-server-side-activeresource/126898/2 "2008-01-23T11:17:11Z")

</div>

On 23 Jan 2008, at 07:06, Michal G. wrote:

> rails  
> project.
> 
> - is there something like a low level httprequest object
> - can i use an activeresource for it?
> - i dont want to use it with AJAX, because i need to progress a lot of  
> addresses

Net::HTTP is the standard ruby thing for making http calls. Whether or  
not you can use ActiveResource rather depends on whether the format of  
the data matches what activeresource expects.

Fred

---

<div class="post-metadata">

**Author:** ![gabru](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c0e974/32.png) [@gabru](https://www.ruby-forum.com/u/gabru)\
**Post date:** [January 23, 2008, 5:06pm UTC](https://www.ruby-forum.com/t/httprequest-on-server-side-activeresource/126898/3 "2008-01-23T17:06:29Z")

</div>

Frederick C. wrote:

> On 23 Jan 2008, at 07:06, Michal G. wrote:
> 
> > rails  
> > project.
> > 
> > - is there something like a low level httprequest object
> > - can i use an activeresource for it?
> > - i dont want to use it with AJAX, because i need to progress a lot of  
> > addresses
> 
> Net::HTTP is the standard ruby thing for making http calls. Whether or  
> not you can use ActiveResource rather depends on whether the format of  
> the data matches what activeresource expects.

hi thanks… i just solved it with ‘open-uri’  
can you tell me if this is better or not … or whats the difference  
between those both

> Fred
