http-client icon indicating copy to clipboard operation
http-client copied to clipboard

A high-performance, high-stability, cross-platform HTTP client.

Results 10 http-client issues
Sort by recently updated
recently updated
newest added

这个工程是半成品 在freertos上没有实现 platform_memory_realloc ,编译都会有问题

请问 你这里是怎么实现keepalive,如果池里的client长时间没使用,keepalive会失效吧

As a client developed in accordance with the standard HTTP protocol, you may need to add new features on some platforms or meet some more convenient needs. You can speak...

enhancement

I encountered a problem when using the http-client to access HTTPs website. It takes about 20 seconds to get response from HTTPs website and the response time is too long....

http_message_buffer_grow函数中的platform_memory_realloc函数没有判断返回值,platform_memory_realloc存在分配失败的情况,可能返回空指针

http_client_post从代码看,使用了strlen来获取发送的数据长度,虽说能适用于大部分的场景,但发送字节流时,显然存在问题

hi,如果以库的形式使用本项目,对于库的使用者来说,主要关心哪些外部API呢?http-client整个目录都是供用户使用的外部API吗?还是仅仅是test目录属于外部使用?我在开发中,若使用test目录,其仅能发送数据并获取响应,但是项目中需要设置http头,test目录下的示例中并没有提供相应接口?

1.解决重新向url内存释放被重复使用问题 2.解决ip缓存的数组越界操作问题

问题点,http_interceptor.c,266行: 参数1:interceptor->connect_params,重定向为新的URL数据 参数2:http_get_connect_params_url(interceptor->connect_params,重定向为新的URL数据同一个地址 http_url_parsing(interceptor->connect_params, http_get_connect_params_url(interceptor->connect_params)); 解决办法: 新的的URL数据重新申请内存保存数据作为参数2传入完成URL的重新解析 const char *p_new_url = NULL; int malloc_len = strlen(http_get_connect_params_url(interceptor->connect_params))+1; p_new_url =(const char *)platform_memory_alloc(http_get_connect_params_url(malloc_len); if(!p_new_url ) { return; } memset(p_new_url,0,); memcpy(p_new_url,http_get_connect_params_url(interceptor->connect_params),strlen(http_get_connect_params_url(interceptor->connect_params)); ret = http_url_parsing(interceptor->connect_params,...

routing_record 函数在申请内存时修改长度加1,不然可能下次connect 不成功。