FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Passing JSON via a URL
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Passing JSON via a URL
Posted: Mon May 05, 2014 03:44 PM

Anybody deal with the problem of having a forward slash "/" in the middle of a string needed to be sent through json.

Sample string "FiveWin / xHarbour"

Cannot seem to send this string with out an error.

I'm using :

cUrl := "http://MyWs.MyDomain.com/MyWs.svc/query/GetIncSearch FiveWin%20/%20xHarbour,company,Header"
oHttp := CreateObject("winhttp.winHttpRequest.5.1")
oHttp:Open( "GET",cUrl )

This dies because of the "/", I have tried "\/", and "//", if I can get it to go through I could fix it in the parser, but I can't get it to go through.

Byron Hopp.

Thanks,

Byron Hopp

Matrix Computer Services
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Passing JSON via a URL
Posted: Mon May 05, 2014 06:20 PM
Byron,

try:

Code (fw): Select all Collapse
%2F


EMG
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Re: Passing JSON via a URL
Posted: Sat Jun 07, 2014 06:41 PM

Is there a list of all that need to be encoded this way. I tried encoding every thing from 32 through 128 and I still have a problem.
Also is there a problem with sending large amounts of data this way ( like uploading off of the data in an Excel file maybe 2000 rows. Does the iNet function handle packaging it up while sending?
Thanks,

Thanks,

Byron Hopp

Matrix Computer Services

Continue the discussion