I have a problem to send a POST request with a text file and some key=value (value contains special characters and it needs to be encoded, e.g: query=select c + a % b).
I've tried like this and it returns error Warning: You can only select one HTTP request!
curl -F "file=@path_to_text_file"
--data-urlencode "query=select c + a % b" "http://localhost:8082/app"
remove --data-urlencode
then it can run but the value of query is not encoded.
I prefer to not need to encode query manually.