开发者

Writing REST Web service client

I would to create a client to access a REST web service in C++.

This should include authentication and session management. Writing this entirely from scratch is big task. Is there any helper library / framework available? Any exampl开发者_开发百科e / tutorial would help me? I heard of libcurl and for framework STAFF. But not sure how STAFF generates the code and whether it is specific to Apache.


I wrote a PAM module that uses libcurl, but you could easily adapt it for your needs:

Pam-http.

Just look at the headers and functions I use. I use SSL as well, so this is a pretty complete example.


If you can go with C, you can use Axis2 C -

http://axis.apache.org/axis2/c/core/

or

http://wso2.org/project/wsf/cpp/2.0.0/docs/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜