HttpUtils2 and JSON. Problem with "{"

Chelu

Member
Licensed User
Longtime User
Hi.

I have a problem with the character "{" when I use HttpUtils2 and JSON.
I have modified the HttpJob module with:
req.SetContentType ( "application/json")

I call a webservice that reads JSON format.
But, when I call job.GetString, job.PostString and others then I've got the following error message:
"java.lang.IllegalArgumentException: Illegal character in query at index 80..."
that corresponds with the "{" character.

If I use the created string directly in my navigator, it works ok.

Where is the problem?
 
Thank you, but the query es too complex and the JSON string is only a part of the parameters.
With Download2 not had the problem of the "{" but the full url not built well, either as parameters specifying all of them or just the share of JSON.
 
Upvote 0
Back
Top