zhengyr / rest-client

Automatically exported from code.google.com/p/rest-client
Apache License 2.0
0 stars 0 forks source link

Can't parse ODATA Queries in URL #169

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Try just about any filter for an ODATA Web Service. Here is an example from the 
ODATA Northwind sample:

http://services.odata.org/Northwind/Northwind.svc/Employees()?$filter=City eq 
'Seattle'

What is the expected output? What do you see instead?

It throws an error "Invalid character in query..."

What version of the product are you using? On what operating system?

Using the GUI RESTClient 3.1 on Windows Server 2012 with the Sun JRE7.

Original issue reported on code.google.com by newstepl...@gmail.com on 1 Mar 2013 at 8:34

GoogleCodeExporter commented 8 years ago
Please encode the special characters in the url. U will find a tool to encode 
at my mini-projects site:

http://wiztools.googlecode.com/

Original comment by subwiz on 2 Mar 2013 at 1:41

GoogleCodeExporter commented 8 years ago
Specifically, your url you need to use:

http://services.odata.org/Northwind/Northwind.svc/Employees%28%29%3F%24filter%3D
City+eq+%27Seattle%27

Original comment by subwiz on 3 Mar 2013 at 5:51