Results 1 to 3 of 3

Thread: Simulate web form submit and get return data

  1. #1

    Default Simulate web form submit and get return data

    Hi all

    I'm not very expert in QT capabilities and I would have a suggestion regarding the best way to follow for get my result.

    I would like to make a software able to connect to a web site showing a form for an online data search (for example a web site like Expedia for flights search). My software should to simulate/create a submit form request (by filling in the right way the form fields required) and get the returned html page generate as a result of the search. Once have the page I'll parse them as XML and get the data I need.

    Based to your experience what is the best QT technology to make such operation I should use?

    Thank you

  2. #2
    Join Date
    Jul 2010
    Location
    Indonesia
    Posts
    83
    Thanked 17 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Re: Simulate web form submit and get return data

    Here is my suggestions:
    1. Use QWebView when possible to simplify your task, or
    2. You can also use QNetworkAccessManager, for example when implements web service client.
    ~ We are nothing in this universe ~

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Simulate web form submit and get return data

    The most basic approach is QWebPage and QWebFrame::evaluateJavascript() (for simulating clicks).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QDataMapper not saving data on mapper submit
    By rdjenner in forum Newbie
    Replies: 5
    Last Post: 13th August 2010, 13:08
  2. QWebView linkclicked and form submit
    By maddog_fr in forum Qt Programming
    Replies: 9
    Last Post: 8th August 2009, 20:03
  3. How to return a lot of data from a QDialog
    By Morea in forum Qt Programming
    Replies: 2
    Last Post: 20th October 2008, 12:10
  4. Replies: 3
    Last Post: 21st January 2008, 12:22
  5. How to create an Insert/Submit button for a form.
    By fnmblot in forum Qt Programming
    Replies: 5
    Last Post: 4th August 2006, 16:18

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.