简体   繁体   English

C ++跨平台URI处理库

[英]cross--platform URI handling library for C++

I am looking for a C++ library to handle URLs/URIs, mainly HTTP URLs. 我正在寻找一个C ++库来处理URL / URI,主要是HTTP URL。 I only want the URI text handling, not any network operation. 我只希望URI文本处理,而不需要任何网络操作。 I know of Poco::URI but IIRC one has to use the whole framework for it to work properly, so I would prefer something smaller and/or standalone. 我知道Poco :: URI,但是IIRC必须使用整个框架才能使其正常工作,因此我希望使用较小的和/或独立的框架。 Is there any such other thing? 还有其他东西吗?

Boost.Spirit, released under the Boost Software License allows you to do this. 通过Boost软件许可发布的Boost.Spirit允许您执行此操作。 The library is cpp-netlib which you can find the documentation for at http://cpp-netlib.github.com/ . 该库是cpp-netlib,您可以在http://cpp-netlib.github.com/上找到其文档。

The relevant type you'll want to use is boost::network::http::uri . 您要使用的相关类型是boost::network::http::uri

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM