ZacksTsang / rest-client

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

Unable to send a POST rest URL with JSON body #166

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

1. send a POST Rest URL
    Choose StringBody in Body
    Choose application/json;charset=UTF-8
    Have a JSON body (with quotes for names and values enclosed in braces

I expect to see the POST suceed and see the data in Database.
This is version restclient-ui-3.1
This is on MAC OS-X 10

See the attached error message for stack trace

Original issue reported on code.google.com by nra...@gmail.com on 3 Jan 2013 at 10:56

Attachments:

GoogleCodeExporter commented 9 years ago
Can you try this version of RESTClient and let me know:

http://dl.dropbox.com/u/2505020/restclient-ui-3.1.1-SNAPSHOT.zip

There was a related issue which was fixed recently, not sure if what you have 
reported is related to that.

Original comment by subwiz on 4 Jan 2013 at 3:58

GoogleCodeExporter commented 9 years ago
I am having a very similar issue as this, curly braces and double quotes in the 
web service url
using restclient-ui-3.2 on Win7

Illegal character in path at index 86: http://...
java.lang.IllegalArgumentException: Illegal character in path at index 86: 
http://...  at java.net.URI.create(Unknown Source)
    at org.apache.http.client.methods.HttpPut.<init>(HttpPut.java:68)
    at org.wiztools.restclient.HTTPClientRequestExecuter.execute(HTTPClientRequestExecuter.java:208)
    at org.wiztools.restclient.ui.RESTViewImpl$2.run(RESTViewImpl.java:322)
Caused by: java.net.URISyntaxException: Illegal character in path at index 86: 
http://...
    at java.net.URI$Parser.fail(Unknown Source)
    at java.net.URI$Parser.checkChars(Unknown Source)
    at java.net.URI$Parser.parseHierarchical(Unknown Source)
    at java.net.URI$Parser.parse(Unknown Source)
    at java.net.URI.<init>(Unknown Source)
    ... 4 more

Original comment by jaxlande...@gmail.com on 20 Jun 2013 at 8:36

GoogleCodeExporter commented 9 years ago

Original comment by subwiz on 4 Dec 2013 at 12:25