This worked for me:
curl -v --cookie "USER_TOKEN=Yes" http://127.0.0.1:5000/
I could see the value in backend using
print(request.cookies)
More Related Contents:
- Why not generate the secret key every time Flask starts?
- How to make remote REST call inside Node.js? any CURL?
- powershell invoke-restmethod multipart/form-data
- How to do a PUT request with cURL?
- Curl retry mechanism
- How do I make a request using HTTP basic authentication with PHP curl?
- RESTful Authentication
- What are best practices for REST nested resources?
- What is the proper REST response code for a valid request but an empty data?
- HTTP response code for POST when resource already exists
- Can you help me understand this? “Common REST Mistakes: Sessions are irrelevant”
- REST Complex/Composite/Nested Resources [closed]
- Is there an easy way to make sessions timeout in flask?
- What is REST? Slightly confused [closed]
- Transactions across REST microservices?
- What is the difference between Sessions and Cookies in PHP?
- Unable to upload zip file through karate framework
- What’s the best RESTful method to return total number of items in an object?
- How to delete cookies on an ASP.NET website
- Spring 4 RestController JSON: characteristics not acceptable according to the request “accept” headers
- Jersey with Struts2 [duplicate]
- REST API Authentication
- PHP cURL HTTP PUT
- How to download excel (.xls) file from API in postman?
- Where can I find jenkins restful api reference? [closed]
- Websocket vs REST when sending data to server
- Call a Server-side Method on a Resource in a RESTful Way
- Place API key in Headers or URL
- Avoid duplicate POSTs with REST
- how to unset cookie in PHP?