简体   繁体   English

使用本机Tizen可穿戴设备中的libcurl从URL输出json响应

[英]Output json response from url using libcurl in Native Tizen wearable

I'm currently new to Native Tizen Development and libcurl as well. 我目前是Native Tizen Development和libcurl的新手。 So I have an API/URL that accepts post data and echo json array to be parsed using tizen watch gear s2. 因此,我有一个API / URL,可以接受要使用tizen watch gear s2解析的发布数据和echo json数组。 I was able to succeed in using curl_easy_perform, however I don't know how to check or retrieve the response from the URL. 我能够成功使用curl_easy_perform,但是我不知道如何检查或检索URL的响应。 Can anyone help me? 谁能帮我?

Are you asking for how to receive the data in memory using the libcurl API? 您是否要求使用libcurl API接收内存中的数据? If so, the curl example getinmemory.c is showing exactly that! 如果是这样的话,curl示例getinmemory.c就是这样显示的!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM