PDA

View Full Version : Interception of GET requests to the server



artkor
27th September 2010, 07:10
Good day friends.
I looked through the documentation and have not yet realized in which direction to look.
The problem is - all requests for a particular port type http://server.local:2222/index.php?id=12&text=123123 - need to fix that is easy for example to display in the window (id = 12 and text = 123,123).
Which class / method can do this?

Translated by Google

tbscope
27th September 2010, 11:59
I have no idea what you want.

For network acces use the QNetworkAccessManager and related classes
For chaning the data, use a QLineEdit.

Did you mean something else?

artkor
28th September 2010, 04:33
Thank you! Question - Is the class methods 'QNetworkAccessManager' can receive get requests addressed to the server (localhost)?

tbscope
28th September 2010, 04:37
If you want to create a server, see QTcpServer.

If you want to create a proxy, see this example:
http://www.qtcentre.org/threads/34082-NetworqDebugger

artkor
29th September 2010, 08:59
And how to use it to get GET data sent from the server?
From the documentation looking for is not found: (.