Fixed: mergeHeaders(request), bleeding of incorrect referrer - refs #60165

git-svn-id: svn://svn.jdownloader.org/jdownloader/browser@28293 ebf7c1c2-ba36-0410-9fe8-c592906822b4
HTMLEntities: use StringUtils.trim

git-svn-id: svn://svn.jdownloader.org/jdownloader/browser@28297 ebf7c1c2-ba36-0410-9fe8-c592906822b4
git-svn-id: svn://svn.jdownloader.org/jdownloader/browser@28298 ebf7c1c2-ba36-0410-9fe8-c592906822b4
Request:
-fixed cookie bleeding (never clone it, browser sets them)
-added sendHTTPHeader (to filter specific http headers)
-remove referer header after cloning
GET/HEADRequest:
-filter content-type/content-length header
Browser:
-added getRefererURL (also fixes referer bleeding from browser headers)
-better use setCurrentURL(JD2 only) for referer stuff
-openRequestConnection: 
--fixed keepAlive support (do not disconnect too soon)
--setRequest is called in correct moment (on return or after createRedirectFollowingRequest)
-fixed refererURL handling (do not change referer while following location headers)
-updated setRequestProperties:
--do not change already set headers
--updated referer handling



git-svn-id: svn://svn.jdownloader.org/jdownloader/browser@28302 ebf7c1c2-ba36-0410-9fe8-c592906822b4
Test: for jiaz

git-svn-id: svn://svn.jdownloader.org/jdownloader/browser@28309 ebf7c1c2-ba36-0410-9fe8-c592906822b4
Browser: added two ways to clear referer for next request
1.) setCurrentURL("")
2.) browser.getHeaders().put(Referer,"");

git-svn-id: svn://svn.jdownloader.org/jdownloader/browser@28327 ebf7c1c2-ba36-0410-9fe8-c592906822b4
build>full

git-svn-id: svn://svn.jdownloader.org/jdownloader/browser@28387 ebf7c1c2-ba36-0410-9fe8-c592906822b4