| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
Removed parse(std::istream&) and parse(const std::string&) from
CookieParser.
* src/CookieParser.cc
* src/CookieParser.h
* test/CookieParserTest.cc
* test/cookietest.txt: Removed
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| | |
|
| |
|
|
|
|
|
| |
Fixed unit test fails on 32bit platforms.
* test/CookieParserTest.cc
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
Parse `expires' of Set-Cookie using Time::parseHTTPDate()
* src/CookieParser.cc
* test/CookieParserTest.cc
* test/HttpResponseTest.cc
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
Removed "using namespace std;" from all sources. Appended std::
prefix to c++
standard classes.
Included string.h where mem* function are used.
|
| |
|
|
|
|
|
|
|
|
| |
Set default domain and default path to cookie.
* src/HttpResponse.cc
* src/CookieBox.{h, cc}
* src/CookieParser.{h, cc}
* test/CookieParserTest.cc
|
| | |
|
|
|
* 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
|