Comments (9)
应该是缺少证书文件,你直接把init_ssl 参数去掉试一下,直接init_ssl();
from cinatra.
client.init_ssl("../../include/cinatra", "server.crt");
这个server.crt 文件还是可以找到的,在项目中。
from cinatra.
你先把参数去掉试一下再说。
from cinatra.
去掉参数提示: handle failed tlsv1 alert internal error (SSL routines)
from cinatra.
cmake 里把ENABLE_SSL 设置为ON
from cinatra.
SET(ENABLE_GZIP ON)
SET(ENABLE_SSL ON)
SET(ENABLE_CLIENT_SSL ON)
这个之前已经设置好了,还是不行。
from cinatra.
你跑的是tests是吧,tests的话要tests 里面的cmakelists中的CINATRA_ENABLE_SSL 改成ON
先清理一下cmake
from cinatra.
我本地测试这个case 返回的是302重定向,是正常的。
from cinatra.
int main() {
using namespace cinatra;
coro_http_client client{};
client.init_ssl("", "", asio::ssl::verify_peer, "connecting domain");
auto response = client.get("https://www.domain.com");
std::cout << response.status << std::endl;
std::cout << response.resp_body << std::endl;
return 0;
}
from cinatra.
Related Issues (20)
- 重定向问题 HOT 5
- http响应数据解析有情况 HOT 19
- websocket服务端一些问题 HOT 14
- refactor cinatra server to support c++20 coroutine HOT 4
- 编译报错,‘_M_set_length’ is not a member of ‘std::string’ HOT 5
- 如何使用已有的io_context运行cinatra HOT 1
- 如何获取coro_http_client调接口 耗时 HOT 3
- Highly concurrent downloading of 2m js files will increase memory usage HOT 1
- websocket,1分钟没有消息交互,服务端会主动把链接掐断 HOT 2
- Windows visit Chinese filename not found
- 请问下,考虑支持unix套接字吗. HOT 10
- 是否可以让server对象的listen函数支持设置连接队列的长度? HOT 6
- bug: gcc resize_and_overwrite 導致髒數據的問題 HOT 21
- fatal error: 'asio/dispatch.hpp' file not found HOT 2
- https question HOT 18
- Failed to connect websocket with `Connection: upgrade` HOT 3
- [需求] 处理程序相关 HOT 12
- client URL 检测 的奇怪 bug HOT 7
- 上传二进制文件无法使用 HOT 2
- async_download 没有写入内容到文件 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cinatra.