{"action":"created","issue":{"url":"https://api.github.com/repos/thephpleague/oauth2-client/issues/254","labels_url":"https://api.github.com/repos/thephpleague/oauth2-client/issues/254/labels{/name}","comments_url":"https://api.github.com/repos/thephpleague/oauth2-client/issues/254/comments","events_url":"https://api.github.com/repos/thephpleague/oauth2-client/issues/254/events","html_url":"https://github.com/thephpleague/oauth2-client/issues/254","id":65226753,"number":254,"title":"Basic http auth headers are not set in POST  curl request ","user":{"login":"vishalmelmatti","id":1233269,"avatar_url":"https://avatars.githubusercontent.com/u/1233269?v=3","gravatar_id":"","url":"https://api.github.com/users/vishalmelmatti","html_url":"https://github.com/vishalmelmatti","followers_url":"https://api.github.com/users/vishalmelmatti/followers","following_url":"https://api.github.com/users/vishalmelmatti/following{/other_user}","gists_url":"https://api.github.com/users/vishalmelmatti/gists{/gist_id}","starred_url":"https://api.github.com/users/vishalmelmatti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishalmelmatti/subscriptions","organizations_url":"https://api.github.com/users/vishalmelmatti/orgs","repos_url":"https://api.github.com/users/vishalmelmatti/repos","events_url":"https://api.github.com/users/vishalmelmatti/events{/privacy}","received_events_url":"https://api.github.com/users/vishalmelmatti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-30T14:36:38Z","updated_at":"2015-04-02T14:09:40Z","closed_at":null,"body":"Hi,\r\n\r\nMy API test server is behind basic http auth. I have implemented my custom provider and trying to POST request with Basic http auth headers. The prepared POST request do not pass headers. How these headers can be set ?"},"comment":{"url":"https://api.github.com/repos/thephpleague/oauth2-client/issues/comments/88919785","html_url":"https://github.com/thephpleague/oauth2-client/issues/254#issuecomment-88919785","issue_url":"https://api.github.com/repos/thephpleague/oauth2-client/issues/254","id":88919785,"user":{"login":"bajb","id":2241334,"avatar_url":"https://avatars.githubusercontent.com/u/2241334?v=3","gravatar_id":"","url":"https://api.github.com/users/bajb","html_url":"https://github.com/bajb","followers_url":"https://api.github.com/users/bajb/followers","following_url":"https://api.github.com/users/bajb/following{/other_user}","gists_url":"https://api.github.com/users/bajb/gists{/gist_id}","starred_url":"https://api.github.com/users/bajb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajb/subscriptions","organizations_url":"https://api.github.com/users/bajb/orgs","repos_url":"https://api.github.com/users/bajb/repos","events_url":"https://api.github.com/users/bajb/events{/privacy}","received_events_url":"https://api.github.com/users/bajb/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T14:09:40Z","updated_at":"2015-04-02T14:09:40Z","body":"We also have the same issue, and have had to duplicate the getAccessToken method into our provider.\r\n\r\nI believe its due to headers being set to null for GET and POST requests.  Not sure if it was intentional or not."}}