如何使用 Matlab webread 和 2 http headers
How to use Matlab webread with 2 http headers
我需要用 matlab 做这个 GET 调用:
curl -X GET \
-H "X-Parse-Application-Id: my_AppKEY" \
-H "X-Parse-REST-API-Key: my_APIKEY" \
https://api.parse.com/1/classes/GameScore
(这是对 parse.com 的基本要求)
在 matlab 2014b 中我有函数 webread which becomes a weboptions struct.
我认为为请求设置 header 的正确方法是这样的:
myHeaders1 = weboptions('KeyName', 'X-Parse-Application-Id', 'KeyValue' , 'my_KEY')
问题是...我只能使用此语法设置 1 header。 如何设置 2 个或更多 header 用于 webread?
您可以call curl from within Matlab if you load right library files or instead you can use urlread2
我需要用 matlab 做这个 GET 调用:
curl -X GET \
-H "X-Parse-Application-Id: my_AppKEY" \
-H "X-Parse-REST-API-Key: my_APIKEY" \
https://api.parse.com/1/classes/GameScore
(这是对 parse.com 的基本要求)
在 matlab 2014b 中我有函数 webread which becomes a weboptions struct.
我认为为请求设置 header 的正确方法是这样的:
myHeaders1 = weboptions('KeyName', 'X-Parse-Application-Id', 'KeyValue' , 'my_KEY')
问题是...我只能使用此语法设置 1 header。 如何设置 2 个或更多 header 用于 webread?
您可以call curl from within Matlab if you load right library files or instead you can use urlread2