do send to: "/api/user/" contents: ["POST",["toto"::34,"titi"::world], ["Content-Type"::"application/json"] ];
So I think it will depend on your file and perhaps also on you server side...
If you have more specificity about what you need and details about your architecture, it could ne interesting to add the feature in GAMA.
Cheers
Benoit
--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/2247e1d1-9f53-462a-91f3-6365f7c8bb8en%40googlegroups.com.
// do send to: "/api/user/" contents: ["POST","raw-query-param", ["Content-Type"::"text/plain"] ];
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/67177884-456e-4bd7-b753-43e877f09919n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/7c44b0b1-b471-45f8-be7c-e68764f8fd99n%40googlegroups.com.
Dear,
I think it could work. I'll give you two examples that I've worked on as examples:
I need to send a file containing text (xml format) to my server, the HTTP request to use is as follows:
The file_content is noted in its entirety in the request and without quotes. In GAMA, I should enter the following code:
The file_content is a string type variable that I would have obtained by exploiting my file.
I then wish to create a dataset on my server, the HTTP request to use in this case is:
In this case, the content sent will allow creating a memory dataset with the name DB. In GAMA
The database creation parameters are given as a string.
In both cases, GAMA must create and send a request exactly as the HTTP request so that the server can process it, without adding quotes around the string values because the HTTP protocol will not understand them.
In all HTTP requests, regardless of the parameter or file, the processing should be the same.
If, using serialization only on JSON files when the user uses the "as_json_string" operator, it allows to obtain this then I think this solution is the correct one.
I hope my explanations were clear enough,
Thank you for your help.
Cheers,
Benjamin
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/5eb0502f-3ecc-419c-99f6-543776bcdf75n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/8191187b-cac5-4a97-97c5-a8e64a3a681en%40googlegroups.com.