Flask Only Sees First Parameter From Multiple Parameters Sent With Curl
I am using curl to make a request to a Flask route that expects multiple query params. However, the log shows only the first param in the url, and Flask doesn't see the second par
Solution 1:
See Bidhan's comment here. I was using curl
without putting my URL inside double quotes.
To quote:
If you're using curl then you need to pass the url inside of quotes. It should look like
curl "localhost:5000/path?param1=1¶m2=2"
. In the shell, & is used for forking processes and doesn't behave like you would expect it to. – Bidhan A
Post a Comment for "Flask Only Sees First Parameter From Multiple Parameters Sent With Curl"