Find Jobs
Hire Freelancers

Parsing cookie data from various browsers to Qt's QNetworkCookie

$30-5000 USD

Cancelled
Posted over 12 years ago

$30-5000 USD

Paid on delivery
The purpose of this project is to imlement code, using the Qt 4 (versions 4.5 and above are okay) API as necessary, that is able to read/parse cookie data from all versions of the following browsers: Mozilla Firefox Google Chrome/Chromium Microsoft Internet Explorer Mozilla Netscape Navigator Opera Safari The code needs to work across Microsoft Windows, Apple Mac OS X, and Linux platforms. Some of these browsers are only available on certain platforms: for each platform that the browsers in the list above support, the provided code should support reading those browser's cookies on that platform. Please see the attached document for the full, detailed requirements ## Deliverables Code to parse cookie data from various browsers to Qt's QNetworkCookie The purpose of this project is to imlement code, using the Qt 4 (versions 4.5 and above are okay) API as necessary, that is able to read/parse cookie data from all versions of the following browsers: * Mozilla Firefox * Google Chrome/Chromium * Microsoft Internet Explorer * Mozilla * Netscape Navigator * Opera * Safari The code needs to work across Microsoft Windows, Apple Mac OS X, and Linux platforms. Some of these browsers are only available on certain platforms: for each platform that the browsers in the list above support, the provided code should support reading those browser's cookies on that platform. The API provided needs to have a function that, given a QUrl, returns a QList of QNetworkCookie instances. This function will look through all the supported browsers on the current platform, finding the browser with cookies from that URL that either: * Are not session cookies **and** (have expiry dates farthest in the future **or** have expired most recently in the past), or if this is not the case: * Been most recently written to or updated (if - and only if - a specific browser does not store this information per-cookie, then it can probably be determined by the modification timestamp on that browser's cookie database (as stored by the filesystem - and can be retrieved by *QFileInfo::lastModified()*)). If, hypothetically, two browser's cookies have the same such 'timestamp', it does not matter which ones are read. Some of the above browsers (or at least recent versions of them) use SQLite databases for storing their cookies. These can be read using the QtSql interfaces. If a browser version stores an SQLite cookie database, that should be read, otherwise whatever other format it uses (probably plain text) should be parsed. The API also needs to provide a function taking a QString *name* and a QList<QString> *tlds* and also returns a QList of QNetworkCookie instances. For each of the items, *i*, in *tlds*, this function searches for browser cookies from the domain "*<name>*.*<i>*" and the QList returned is the list of cookies that the other function would return from that domain, that has the best 'timestamp' (as described for the previous function). For example, if this second function were called with "foo" for *name* and [".com", ".[login to view URL]"] for *tlds*, and there are cookies available for both domains, the function would return the cookies for the domain that have the best 'timestamp' (by the same test used for the first function). If different domains have the same 'timestamp', the one with the TLD with the most periods (.) should be used. If two TLDs had the same number of periods, cookies should be returned for the one coming first in the *tlds* list. For each QNetworkCookie created, all of its data fields (such as *name, value, domain, path, expirationDate, httpOnly, etc.)* that can be parsed from the chosen database should be stored.
Project ID: 3757462

About the project

1 proposal
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
1 freelancer is bidding on average $1,020 USD for this job
User Avatar
See private message.
$1,020 USD in 10 days
5.0 (2 reviews)
4.4
4.4

About the client

Flag of NEW ZEALAND
Auckland, New Zealand
5.0
11
Payment method verified
Member since Sep 3, 2010

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.