better handling empty access token
incorrect variable
it should be requestHeader not responseHEader
rename parseHeader to parseResponseHeader to avoid more confusion
added new namespace for HttpClient connections
changed response parsing
 - used responseHeader properly
 - used responseCode properly