Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am looking for HTTP parsing library for C/C++.
I have looked curl library, but it seems it is a http client library.
I am looking for a library which parses HTTP header (e.g. a way to
get the query string, get cookie, get request url, get Post Data)?
Thank you.
About 6 months ago, I was looking for the same exact thing. Then I found this page:
HTTP Made Really Really Easy
and I just wrote my own... Works great, surprisingly simple to implement...
Check out libebb, it has a parser generated with Ragel using the easy yet powerful PEG (it's based on Zed Shaw's mongrel parser)
libebb is a lightweight HTTP server library for C. It lays the
foundation for writing a web server by providing the socket juggling
and request parsing. By implementing the HTTP/1.1 grammar provided
in RFC2612, libebb understands most most valid HTTP/1.1 connections
(persistent, pipelined, and chunked requests included) and rejects
invalid or malicious requests. libebb supports SSL over HTTP.
Also check this speedy parser
I would suggest you to have a look to cpp-netlib, which is based on Boost.Asio.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I've been self teaching myself C++ for the last 6 months and I would like to put my little acquired knowledge into a relatively useful program.
I would like to make a program that will ask for an input, (here's the tricky part) search in a list of websites (including other pages in said website) for that input's value and display the results.
Truth is, I don't really know how to get started since I haven't read any guide on c++ and networking, so if you do have a good guide in mind, please share it with me, much appreciated.
EDIT: Sorry I wasn't clear enough, the program in itself isn't really what worries me, i'm just looking for a guide that explains how to combine c++ and networking. And I want it to be something like a price comparison program, take an input from the user, search the input in a list of websites, get the result, look for it's value and display the results in an increasing order
You may wish to start looking into Networking libraries for c++. keep in mind there are many library and choosing the right one will purely depends on your requirement. Here is the quick list of c++ networking libraries that I've considered in past!
Boost.Asio is really good, though the documentation is scarce.
C++ Network Library
POCO
Qt
libcurl
ZeroMQ
Apache APR
Also see the post by 'George Stocker' at https://stackoverflow.com/a/118968/3685825
Generally We Use Sockets In c++ for Network programming. And Sockets uses following protocol families.
PF_UNIX Local communication
PF_INET Internet (TCP/IP)
PF_NDD The operating system NDD
PF_INET contains following protocol.
TCP
UDP
RDS
IP
Internet Control Message Protocol (ICMP)
And for Calling an HTTP protocol you need a middle-ware since socket can't communicate directly to the HTTP protocol.
See this question for calling an HTTP URL from c++.
How do you make a HTTP request with C++?
And for socket Reference I suggest you to read
dvanced Programming in the UNIX® Environment.
By W. Richard Stevens, Stephen A. Rago
for other references
What is a good book/guide for socket programming in C?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am looking for Best XML parser with support for XSD and Namespace along with SOAP Support. Looking for small footprint(ideally upto 500kB). I came across gSOAP, but not sure if Standard Open Source Edition of gSOAP supports all the features I am looking for.
Any help if much appreciated.
I think it is a good question.
First: if you use xml/soap/wsdl based web services, you have probably a really highlevel project, and thus even the c++ isn't really sure an optimal choice. I think it is very unlinkely, if you want to develop a real, working software in C, which makes soap services. IMHO you could think about java.
Second: xml and soap/wsdl are two different things, although soap uses xml for communication and the interface description (wsdl) is xml, too.
For xml handling, I suggest you could use libxml++ .
For SOAP, there is more library, but most of them isn't enough good for me to name them. Try each after the other, and sometimes you will have luck. :-)
Both libs have small footprint - they are relative complex, but don't need a legion of another libraries.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I searched the web, and found cgicc, rudeserver and Wt etc., but none of them suit my needs. I want a library that can parse all the request data to a get,post,cookie and file array, just like php does.
Cgicc etc use formentry to get form data, but it's way too difficult to use.
Wt use the widgets to develop, which I think is not very comfortable.
I used to use PHP for web programming, but when I know that C++ is amazingly faster than php, I decide to use C++ instead.
Any suggestions? thanks in advance.
I don't understand why Wt don't fit. (you could use Wt without its "widgets", just for the HTTP aspect).
You could make a FastCGI application (it would fit nicely into many existing web servers).
You could also embed an HTTP server inside your C++ application, using some HTTP server library like libonion, libmicrohttpd or the one inside poco
BTW, there are better alternatives to PHP like Opa, ocsigen, kayalang (without requiring C++).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I want to build a transfer protocol on top of TCP to send a certain type of file between two computers. I was wondering if there were any Resources, open source projects or books that I could look at to get an idea of what I should be doing.
A good place to start would be the W3C HTTP/1.1 standard or the HTTP/1.0 standard if you want to implement something simple. You probably only need to implement the GET verb if you just wan't simple I/O. You could also look at implementing JSON as a data interchange format. If you're looking for information on how to implement a TCP/IP server too, then there are several books on the subject.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have created a soap service which I want to test.But I dont want to create a soap client for testing it.I am looking for some tool which can parse wsdl and give list of parameters which can be inputted and then gives response from soap service.
I know of soap panda , but it does not work,says invalid url as my soap service url has a hyphen in it.
SoapUi is very large in size.I want a small tool which I can easily download
soapclient is a web tool,but it is down.
Please suggest some alternative tool
Try POSTER firefox-addon might be what your looking for. :S
You can try:
http://www.service-repository.com/client/start or
http://membrane-soa.org/soap-client/
The 2nd is better for me, but it doesn't work with SSL.
Ciao.