Results 1 to 5 of 5

Thread: QTcpServer : retrieve the requested URL

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2009
    Posts
    38
    Thanks
    13
    Platforms
    Unix/X11 Windows

    Default QTcpServer : retrieve the requested URL

    Hi there!

    I have developped a server, its address is 127.0.0.1:4242 ; I'm using QTcpServer, and QTcpSocket (to send the answer).

    I would like to be able to know what is the requested URL.

    For example, if I type this in Firefox :
    Qt Code:
    1. http://127.0.0.1:4242/directory1/test/
    To copy to clipboard, switch view to plain text mode 

    how can I know that firefox wants to access /directory/test/ ?

    I tried localAddress(), but it only returns 127.0.0.1



    I really need your help guys !
    Last edited by fitzy; 27th October 2009 at 14:11.

Similar Threads

  1. QTcpServer and port problem
    By Talei in forum Qt Programming
    Replies: 4
    Last Post: 28th April 2009, 18:01
  2. QTcpServer & QTcpSocket questions...
    By jxmot in forum Qt Programming
    Replies: 2
    Last Post: 24th April 2008, 21:38

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.