summaryrefslogtreecommitdiff
path: root/test/CookieParserTest.cc
Commit message (Collapse)AuthorAgeFilesLines
* 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-01-291-34/+4
| | | | | | | | | | | Removed parse(std::istream&) and parse(const std::string&) from CookieParser. * src/CookieParser.cc * src/CookieParser.h * test/CookieParserTest.cc * test/cookietest.txt: Removed
* 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-01-281-1/+1
| | | | | | | | | | | | | | | | | | Rewritten Cookie storage. * src/Cookie.cc * src/Cookie.h * src/CookieParser.cc * src/CookieStorage.cc * src/CookieStorage.h * src/a2functional.h * test/CookieParserTest.cc * test/CookieStorageTest.cc * test/CookieTest.cc * test/HttpResponseTest.cc * test/TestUtil.h * test/a2functionalTest.cc
* 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2009-02-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Open file in binary mode. * src/CookieStorage.cc * src/DHTSetup.cc * src/DHTUtil.cc * src/Netrc.cc * src/NsCookieParser.cc * src/ProtocolDetector.cc * src/RequestGroupMan.cc * src/Signature.cc * src/bencode.cc * src/download_helper.cc * src/option_processing.cc * test/CookieParserTest.cc * test/DefaultBtProgressInfoFileTest.cc * test/FileTest.cc * test/GZipDecoderTest.cc * test/RequestGroupManTest.cc * test/SignatureTest.cc * test/SingleFileAllocationIteratorTest.cc * test/UriListParserTest.cc
* 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2008-12-151-2/+2
| | | | | | | | | | | | | | | Fixed the cookie implementation based on RFC2965. Now if a value in domain field is not started with dot, then prepend dot. That means a cookie with domain=sf.net is sent to wiki.sf.net. * src/Cookie.cc * test/CookieParserTest.cc * test/CookieStorageTest.cc * test/CookieTest.cc * test/NsCookieParserTest.cc * test/Sqlite3MozCookieParserTest.cc
* Applied aria2-1.0.0-mingw-r5.patchRoss Smith II2008-11-221-1/+7
|
* 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2008-11-101-2/+2
| | | | | | | Fixed unit test fails on 32bit platforms. * test/CookieParserTest.cc
* 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2008-11-051-2/+3
| | | | | | | | | | | | | | | | | Handle date before epoch. To create *bad* Time object, call Time::null(). * src/CookieParser.cc * src/FtpConnection.cc * src/FtpConnection.h * src/FtpNegotiationCommand.cc * src/RequestGroup.cc * src/TimeA2.cc * src/TimeA2.h * test/CookieParserTest.cc * test/FtpConnectionTest.cc * test/TimeTest.cc
* 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2008-10-261-4/+4
| | | | | | | | | | | | | Treat Cookie object as session cookie if expiry = 0 is given. With this change, you can specify session scoped cookies in an external file setting expiry value to 0. * src/Cookie.cc * src/Cookie.h * test/CookieParserTest.cc * test/CookieStorageTest.cc * test/CookieTest.cc
* 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2008-09-071-2/+13
| | | | | | | | | Parse `expires' of Set-Cookie using Time::parseHTTPDate() * src/CookieParser.cc * test/CookieParserTest.cc * test/HttpResponseTest.cc
* 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2008-09-011-21/+21
| | | | | | | | | | | | | | | Made Cookie immutable. * src/Cookie.cc * src/Cookie.h * src/CookieParser.cc * src/CookieParser.h * src/CookieStorage.cc * test/CookieParserTest.cc * test/CookieStorageTest.cc * test/NsCookieParserTest.cc * test/Sqlite3MozCookieParserTest.cc
* 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2008-08-171-0/+5
| | | | | | | | | | | | | | | If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT. If Util::httpGMT is failed, then Cookie::onetime is set to true. * src/Util.cc * src/Util.h * src/CookieParser.cc * test/UtilTest.cc * test/CookieParserTest.cc
* 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2008-02-081-19/+21
| | | | | | | | | Removed "using namespace std;" from all sources. Appended std:: prefix to c++ standard classes. Included string.h where mem* function are used.
* 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2008-01-111-3/+3
| | | | | | | | | | Set default domain and default path to cookie. * src/HttpResponse.cc * src/CookieBox.{h, cc} * src/CookieParser.{h, cc} * test/CookieParserTest.cc
* Merged Ross's patch to test code.Tatsuhiro Tsujikawa2007-07-231-1/+1
|
* 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2007-06-101-0/+75
* src/AbstractCommand.cc (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and MSG_MAX_TRY from error to info. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY. * src/message.h (MSG_TORRENT_DOWNLOAD_ABORTED): New definition. (MSG_DOWNLOAD_ABORTED): Added %s. (MSG_RESTARTING_DOWNLOAD): Added %s. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated. * src/PeerAbstractCommand.cc (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED * src/Request.h (cookieBox): Made ShardHandle. * src/RequestGroup.h, src/RequestGroup.cc (createNextCommandWithAdj): New function. * src/FileAllocationCommand.cc (executeInternal): Use createNextCommandWithAdj(). * src/CheckIntegrityCommand.cc (executeInternal): Use createNextCommandWithAdj(). Added --load-cookies command-option. * src/OptionHandlerFactory.cc (createOptionHandlers): Added PREF_LOAD_COOKIES. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser. Now aria2 can handle cookie's expiration date. * src/Cookie.h (expires): Changed its type to time_t. * src/main.cc: Added --load-cookies command-line option. * src/prefs.h (PREF_LOAD_COOKIES): New definition. * src/Util.h, src/Util.cc (httpGMT): New function. * src/Request.cc (Request): Initialize cookieBox using CookieBoxFactory. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class. * src/CookieParser.h, src/CookieParser.cc: New class. * src/main.cc: Chagned the default value of --metalink-servers to 5. * src/HttpResponseCommand.cc (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety