Question on writing HTTP parser
Hello. I'm newbie for boost library. I'm trying to write a HTTP Parser, which handles the HTTP message coming from the proxy server. I don't know much about the boost, so I'm really confused on what to use to write my functionality. When I search on the internet, some say that I need to used Boost.Asio and Some say Boost.Spirit. When I looked over the document for each, I found that Boost.Asio is like network library for C++ and Boost.Spirit is for writing compilers. As I mention above, I want to write a http parser. I think the relevant one is the following: https://github.com/joyent/http-parser Please give me some advice. Since this is my first posting, I don't know the culture in this mailing list so if I'm doing some mistake in here, please let me know. Thanks.
On 02/24/2014 08:30 PM, gomti wrote:
Hello. I'm newbie for boost library.
I'm trying to write a HTTP Parser, which handles the HTTP message coming from the proxy server.
I don't know much about the boost, so I'm really confused on what to use to write my functionality.
When I search on the internet, some say that I need to used Boost.Asio and Some say Boost.Spirit.
When I looked over the document for each, I found that Boost.Asio is like network library for C++ and Boost.Spirit is for writing compilers. As I mention above, I want to write a http parser. I think the relevant one is the following: https://github.com/joyent/http-parser
Spirit is a parsing library and is well suited for building what you need. There is a Spirit mail list and an active IRC channel on freenode (##spirit) http://www.boost.org/community/groups.html#spirit michael -- Michael Caisse ciere consulting ciere.com
On Feb 24, 2014, at 8:30 PM, gomti
Hello. I'm newbie for boost library.
I'm trying to write a HTTP Parser, which handles the HTTP message coming from the proxy server.
I don't know much about the boost, so I'm really confused on what to use to write my functionality.
When I search on the internet, some say that I need to used Boost.Asio and Some say Boost.Spirit.
When I looked over the document for each, I found that Boost.Asio is like network library for C++ and Boost.Spirit is for writing compilers. As I mention above, I want to write a http parser. I think the relevant one is the following: https://github.com/joyent/http-parser
Please give me some advice. Since this is my first posting, I don't know the culture in this mailing list so if I'm doing some mistake in here, please let me know.
You should look at cpp-netlib (http://cpp-netlib.org/). It contains a MIME parser written using spirit. (Disclaimer: I wrote the parser) — Marshall
Thanks for the responses. @ Marshall Clow Are you the one who wrote the parser in cnet-lib?? I just downloaded and checked the "parser.ipp" header for it. If I have some question on it, can I ask you? Thanks. On 2/25/14, 2:53 PM, Marshall Clow wrote:
On Feb 24, 2014, at 8:30 PM, gomti
mailto:lionheart8470@gmail.com> wrote: Hello. I'm newbie for boost library.
I'm trying to write a HTTP Parser, which handles the HTTP message coming from the proxy server.
I don't know much about the boost, so I'm really confused on what to use to write my functionality.
When I search on the internet, some say that I need to used Boost.Asio and Some say Boost.Spirit.
When I looked over the document for each, I found that Boost.Asio is like network library for C++ and Boost.Spirit is for writing compilers. As I mention above, I want to write a http parser. I think the relevant one is the following: https://github.com/joyent/http-parser
Please give me some advice. Since this is my first posting, I don't know the culture in this mailing list so if I'm doing some mistake in here, please let me know.
You should look at cpp-netlib (http://cpp-netlib.org/). It contains a MIME parser written using spirit. (Disclaimer: I wrote the parser)
— Marshall
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
gomti
-
Marshall Clow
-
Michael Caisse