on 02-02-2017 8:14 AM
example XSJS
var client = new $.net.http.Client();
client.request(req, destination);
var req = new $.net.http.Request(method, path)
Problem
Passing a path with a space in it is not automatically transformed to a valid URI.
* path = /b1s/v1/Items('TEST_DSO4') => Works
* path = /b1s/v1/Items('ADALIE GREY') => Does not work
-> must be path = /b1s/v1/Items('ADALIE%20GREY')
I think this should be automatically done by the XSJS library. (POSTMAN does this also automatically)
You can use the JS function "encodeURI" to get a valid path for your case.
e.g.
var path = encodeURI("/b1s/v1/Items('ADALIE GREY')");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.