How to implement open API interface server with C + +

Source: Internet
Author: User
Tags epoll

such as the Sina Weibo API server.
The interface is using an HTTP request.
How does the server side implement an HTTP server?
Can I use Libcurl?

C + + words, generally with libevent or Libev this library to achieve it. Of course, if the epoll is more familiar with the direct use also no problem.

Epoll-based HTTP server implementation: http://www.cnblogs.com/clowwindy/archive/2011/09/23/a_http_server_faster_than_nginx.html

Why do you have to write an HTTP server yourself? Just use Nginx or Apache+php/java/ruby.

Self-written should not be stable and reliable with mature ready-made systems ~

Search, Libcurl can only be used as a client

The HTTP server library also wants to have:
Libmicrohttpd
Shttpd
Easyhttpd
Cpphttpd

How to implement open API interface server with C + +

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.