Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
234 views
in Technique[技术] by (71.8m points)

How to request with request header to https URL using C++ REST SDK?

I'm trying to make source that requests to specific https URL with request header using c++ rest sdk. ex)https://111.0.0.1:1111/vl/api/auth

Then, I want to allocate response value to char* value and print.

It is first time to use rest sdk. So I searched many things.

But,there are no solutions request 'Get' with request header

RequestHeader is like this :

id:"1234567890"
auth:"7d8ffbecb05d59459f96d6e3aac8542e"

But I don't know what to do

httpclient client(U("http://localhost:9991/test"));
////then How???

I need your help!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...