一、http协议详解
https://www.cnblogs.com/xietianjiao/p/13255099.html
二、https协议详解
https://www.cnblogs.com/xietianjiao/p/13255408.html
三、libcurl库详解
https://www.cnblogs.com/xietianjiao/p/13260021.html
四、基于libcurl库访问百度
#include <stdio.h>
#include <curl/curl.h>
#include <string.h>
#define true 1
#define false 0
typedef unsigned int bool;
size_t readData( void *ptr, size_t size, size_t nmemb, void *stream)
{
char buf[10240]={'\0'};
strncpy(buf,ptr,10240);
printf("===============================readData===========================\n");
printf("buf=%s\n",buf);
}
bool getUrl(char *filename)
{
CURL *curl;
CURLcode res;
FILE *fp;
if ((fp = fopen(filename, "w")) ==