linux c libcurl的使用说明

linux c libcurl的使用说明

最近正在研究C语言访问URL的实现,参考了如下网页,在此记录一下,方便后续回头总结:
Linux libcurl安装及注意事项:https://www.cnblogs.com/lantingg/p/8872314.html
libcurl 使用说明和网页抓取 linux下的curl编程:https://blog.csdn.net/lvchaocccc/article/details/49904533
linux c libcurl的简单使用:https://www.cnblogs.com/jikexianfeng/p/6055024.html

JSON构造/解析(by C)—cJSON和json-c

由于url形式的api返回的数据一般为json格式,所以需要同步研究json格式数据有的解析,参考链接如下:
JSON构造/解析(by C)—cJSON和json-c:https://www.cnblogs.com/arnoldlu/p/6490860.html
C 使用libcurl与json-c方法:https://blog.csdn.net/linux1500176279/article/details/78702546

json-c安装

yum安装:yum install json-c json-c-devel
安装完成之后检查安装是否成功:
ls /usr/local/include/json/ #成功这条命令会出现json相关头文件
ls /usr/local/lib/ #成功这条命令会出现json相关的库文件
参考链接如下:https://blog.csdn.net/u011641885/article/details/46755225?utm_source=blogxgwz8

cJSON安装(用的时候再弄吧)

centos6.5下git安装(源码安装的时候才会用到git下载源码)

git相关介质下载链接:https://mirrors.edge.kernel.org/pub/software/scm/git/
安装github,参考链接如下:https://www.cnblogs.com/fuyuanming/p/5804695.html
GitHub 解决不支持老版加密方式 SSL connect error:https://blog.csdn.net/bravezhe/article/details/80192031?utm_source=blogxgwz0

SourceTree+Git简单使用(Windows)

参考链接:https://blog.csdn.net/u012792686/article/details/63684248

windows下sourcetree安装

git客户端sourcetree下载:https://www.sourcetreeapp.com/
客户端安装过程中可能需要安装或者更新.NET版本:https://www.microsoft.com/net/download/thank-you/net472
安装过程中可能需要注册用户,可以跳过此步骤,相关方法如下:
#############################################################
sourcetree 免登陆跳过初始设置方法:进入C:\Users\administrator\AppData\Local\Atlassian\Sourcetree,在此新建一个accounts.json文件
写入:
[
{
i d " : " 1 " , " id": "1", " id":"1","type”: “SourceTree.Api.Host.Identity.Model.IdentityAccount, SourceTree.Api.Host.Identity”,
“Authenticate”: true,
“HostInstance”: {
i d " : " 2 " , " id": "2", " id":"2","type”: “SourceTree.Host.Atlassianaccount.AtlassianAccountInstance, SourceTree.Host.AtlassianAccount”,
“Host”: {
i d " : " 3 " , " id": "3", " id":"3","type”: “SourceTree.Host.Atlassianaccount.AtlassianAccountHost, SourceTree.Host.AtlassianAccount”,
“Id”: “atlassian account”
},
“BaseUrl”: “https://id.atlassian.com/”
},
“Credentials”: {
i d " : " 4 " , " id": "4", " id":"4","type”: “SourceTree.Model.BasicAuthCredentials, SourceTree.Api.Account”,
“Username”: “”,
“Email”: null
},
“IsDefault”: false
}
]
即可。
#############################################################

你可能感兴趣的:(其他(待整理))