This is due to a security restriction: http://stackoverflow.com/questions/2864062/getrequestpropertyauthorization-always-returns-null See line 251 http://www.docjar.com/html/api/sun/net/www/protocol/http/HttpURLConnection.java.html
Author: pmouawad Date: Mon Feb 27 07:57:43 2017 New Revision: 1784506 URL: http://svn.apache.org/viewvc?rev=1784506&view=rev Log: Bug 60778 - Http Java Impl does not show Authorization header in SampleResult even if it is sent Bugzilla Id: 60778 Modified: jmeter/trunk/build.xml jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPJavaImpl.java jmeter/trunk/xdocs/changes.xml
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4300