# HTTP GET with query

**URL:** <https://forum.servoy.com/t/http-get-with-query/6093>\
**Category:** Classic Servoy\
**Created:** [June 20, 2006, 4:43am UTC](https://forum.servoy.com/t/http-get-with-query/6093 "2006-06-20T04:43:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmcnulty611](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@jmcnulty611](https://forum.servoy.com/u/jmcnulty611)\
**Post date:** [June 20, 2006, 4:43am UTC](https://forum.servoy.com/t/http-get-with-query/6093/1 "2006-06-20T04:43:54Z")

</div>

All - Am looking for a bean or plugin that will accomplish an http GET with a query that is made against a 3rd party server. The server validates and returns properly formed US street addresses alond with other pertinent data. The get looks like:

[http://www.thirdparty.com/AddressValida … ate?input=](http://www.thirdparty.com/AddressValidator/Service.asmx/MethodValidate?input=)ZIP112345SOMETHING54321CompanyNamestreet\_addresscityName, stateAbbreviation zipCode

which returns several name value pairs with the corrected address information like:

\<?xml version="1.0" encoding="utf-8" ?\> 
- 

12345  
ZIP1  
31  
99999  
5555  
C031  
123 MAIN ST.  
COMPANY NAME  
CITY ST 99999-5555  
CITY NAME  
ST  
(more here)  
6/19/2006 9:36:41 PM

The get is of type “application/x-www-form-urlencoded”

Any thoughts or direction on a specific bean that accepts NV pairs and such? Thank you ! John

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [June 20, 2006, 7:06am UTC](https://forum.servoy.com/t/http-get-with-query/6093/2 "2006-06-20T07:06:54Z")

</div>

Servoy comes with a HTTP bean. You can use this to fetch data from other webservices.  
Check the Plugins node in the Servoy Editor.

---

<div class="post-metadata">

**Author:** ![jmcnulty611](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@jmcnulty611](https://forum.servoy.com/u/jmcnulty611)\
**Post date:** [June 20, 2006, 3:33pm UTC](https://forum.servoy.com/t/http-get-with-query/6093/3 "2006-06-20T15:33:36Z")

</div>

We thoughts so too - and gave it a go… but no joy. It could just be that the documentation is thin on the plugin, but if our service used POSTS, we could accomplish the task, but because it is a GET, we cannot. ?? John

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [June 20, 2006, 5:11pm UTC](https://forum.servoy.com/t/http-get-with-query/6093/4 "2006-06-20T17:11:43Z")

</div>

Hoi John,

With a GET you simply put the arguments in the URL.  
With a POST you use the Poster class of the HTTP plugin.

---

<div class="post-metadata">

**Author:** ![Jan\_Aleman](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@Jan\_Aleman](https://forum.servoy.com/u/Jan_Aleman)\
**Post date:** [June 20, 2006, 5:33pm UTC](https://forum.servoy.com/t/http-get-with-query/6093/5 "2006-06-20T17:33:52Z")

</div>

Perhaps you should url encode your url? Some services might not enjoy the spaces you show in your sample URL. The servoy plugin simply does a GET with the given URL, no rocket science involved.

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [June 20, 2006, 6:37pm UTC](https://forum.servoy.com/t/http-get-with-query/6093/6 "2006-06-20T18:37:14Z")

</div>

> ROCLASI:  
> Hoi John

I just saw I actually used ‘Hoi’ instead of ‘Hi’.  
Hoi == Hi in dutch.

---

<div class="post-metadata">

**Author:** ![jmcnulty611](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@jmcnulty611](https://forum.servoy.com/u/jmcnulty611)\
**Post date:** [June 20, 2006, 8:32pm UTC](https://forum.servoy.com/t/http-get-with-query/6093/7 "2006-06-20T20:32:47Z")

</div>

Smile. I’ll take “Hoi” as encouragement! Will redo the coding and see what happens. Thank you! John
