filipESP wrote: ↑Tue May 14, 2019 6:52 am
Ok, but is it possible to get something like eg. var1aaavar2bbb instead var1=aaa&var2=bbb using esp_idf?
why you want do these?
how you parse the vars and value what you get?
params
& and value
= are html standard
Your theme post sounds more
-> "How Set Query String Parameters"
-> "How Send Query String Parameters"
-> "How Get Query String Parameters"
-> "How Parse Query String Parameters"
like @fly135 give u "Http_Server_Response_Send" example, if you want not use the html rule in your usually esp32_http_send routine / send of data from your http_server on esp32
then you must send "custom" response
var1Notvar2sovar3goodvar4ideavar5bettervar6usevar7standardvar8query
for standard Parse/Query ect -
there are standard routines for this available
example in other language client side .. :
Code: Select all
var url_string = "http://www.myesp32server.com/user_info.html?var1=1&var2=3&var3=m2-m3-m4-m5";
var url = new URL(url_string);
var c = url.searchParams.get("c");
console.log(c);
if you use your own send params routine on esp32
.. then you must write your own "GET Code"on client side too
is possible - yes - but is it usefull -no-
you can do an enc response ( encrypted ) which inert all vars and you have a client side custom html
which can dec (decrypt ) it.. but this is an other theme and exist in esp-idf also.
hope this helps in your code design - but i suggest you to start understand standards,
then change it for your customly use or create it basicly new
not sure in which language you want start/work/do this
perhabs
this 27 examples can be a good begin
parse URL's..
also to learn/hear more about programing language inside and outside the universe
..the listed 27 examples in the link is part of usually knowledge..
..
sure
best wishes
rudi