* Make Request-URI an absolute path. Some servers cannot permit

absoluteURI as Request-URI.
pull/1/head
Tatsuhiro Tsujikawa 2006-02-18 05:36:50 +00:00
parent 8b1c7b0967
commit 6abf60448e
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* Make Request-URI an absolute path. Some servers cannot permit
absoluteURI as Request-URI.
* Added Referer support.
* Added referer command-line option.
* Added rety-wait command-line option.

View File

@ -53,8 +53,8 @@ string HttpConnection::getHost(const string& host, int port) {
string HttpConnection::createRequest(const Request* req, const Segment& segment) {
string request = string("GET ")+
req->getCurrentUrl()+
//(req->getDir() == "/" ? "/" : req->getDir()+"/")+req->getFile()+
//req->getCurrentUrl()+
(req->getDir() == "/" ? "/" : req->getDir()+"/")+req->getFile()+
string(" HTTP/1.1\r\n")+
"Referer: "+req->getPreviousUrl()+"\r\n"+
"User-Agent: aria2\r\n"+