This challenge is to create a curl command to interact with a Google Web App that takes a JSON input and returns the JSON and a few other items.
The usage of system(curl_cmd_str) works correctly while webwrite returns a 405 error due to Google redirects
Given a Web App url and a structure create the curl cmd that will initiate a response to the json encode of the structure.
The command string format is:
cmd='curl -L -H "Content-Type: application/json" -d "JSON_str" url'
The normal JSON_str, jsonencode(data), must have every " replaced by \"
The test suite in Test 2 contains the web app code and how it was created
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers2
Suggested Problems
More from this Author306
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!