Results 1 to 17 of 17

Thread: Setting a cookie for a Qhttp connection

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Setting a cookie for a Qhttp connection

    Should this script set those cookies (lines 9 and 10 of the above output) in that situation? You'd have to ask the script author what 302 means in this case It contains a redirection to index.php so looks like everything is fine, you should follow the location. It probably just redirects you to the proper page after login.

  2. The following user says thank you to wysota for this useful post:

    Nyphel (5th April 2007)

  3. #2
    Join Date
    Feb 2007
    Posts
    158
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    25

    Default Re: Setting a cookie for a Qhttp connection

    The cookies of lines 9 and 10 seems to be corresponding with the authentification... But I don't think they are usefull. I think that they are identifying the longgin session period.

    About the redirection :
    Qt Code:
    1. <form method="post" action="index.php">
    To copy to clipboard, switch view to plain text mode 
    Qt Code:
    1. <input type="hidden" name="referer" value="http%3A%2F%2Fcourriel%2Findex.php">
    To copy to clipboard, switch view to plain text mode 
    The redirection targets the same page as the form action .
    Ok, I will discuss about that with the webmaster.

    Thanks a lot Wysota and Patrick, now I understand better the cookies and how managing them with Qt4/ QHttp

Similar Threads

  1. QHttp internal error
    By LubosD in forum Qt Programming
    Replies: 1
    Last Post: 16th August 2006, 10:57
  2. how to use QHttp inside QThread in Qt3
    By alusuel in forum Qt Programming
    Replies: 3
    Last Post: 14th July 2006, 12:19

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.