Hi,

I'm trying to read the HTTP URL string using C++, and I was wondering if it is possible.

Here is my situation:

There is a server listening to a socket. This socket receives an HTTP Request such as: http://localhost/MyApplication ? userID = x

All I need to do is to read userID = x.

My web server is implemented by wt C++ web toolkit. wt provides a way to read and parse URL strings, but it requires that the connection between the client and the server is alive. This means that if the server receives an HTTP request from a client in which the connection is closed, it will then drop the message and never parses it.

(I am receiving requests from a payment gateway, and thats why the connection : close is set in the http message)


Thanks for your help in advance,


Nima

You could try adding logging function to it. And after it read the log.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.