cancel
Showing results for 
Search instead for 
Did you mean: 

How to combine two sets of string and send it to server by HTTP request?

johnstone
Node Link

HI there,

I am try to build a feature that customer can load remote file resources by himself through send a GET request on the client-side.

 

Get /api/loadResources/?query=load%20cvs%20from%20'https://server/resources/'+filename%20as%20file%20return%20file.id,file,name,file,createDate HTTP/ 1.1

Host: server.com

 

I wanna combine 'https://server/resources/' string and 'filename' string to  a new string then send it to server-side,but the server-side recevice the value query is

 

load csv from 'https://server/resources/' students.csv as file return file.id,file,name

 

 The '+'  character was changed to blank space,even i tried to urlencode the '+' to '%2B' but still fail.

Any suggestion?Thanks.

1 ACCEPTED SOLUTION

dana_canzano
Neo4j
Neo4j

@johnstone 

something like

with 'https://data.neo4j.com/northwind/' + 'customers.csv' as url load csv from url as row return row limit 2;

or for your case

with 'https://server/resources/' + 'students.csv' as url load csv from url as row return row limit 2;

View solution in original post

1 REPLY 1

dana_canzano
Neo4j
Neo4j

@johnstone 

something like

with 'https://data.neo4j.com/northwind/' + 'customers.csv' as url load csv from url as row return row limit 2;

or for your case

with 'https://server/resources/' + 'students.csv' as url load csv from url as row return row limit 2;