Authentication using Session

I am sending both the sesionID and username:password in headers of my REST query but still I am not getting authenticated. Is there something wrong in the syntax.

URL: http://localhost:8083/openmrs-standalone/ws/rest/v1/visit?patient=c342807d-fc65-4de1-983e-424c4add487d METHOD: GET

[HEADERS] set-cookie: jsessionid=C17C12C50D5C194E2487982F08C4BAEB Authorization:Basic: YWRtaW4=:QWRtaW4xMjM=

Got it. I was taking the base 64 of username and password separately instead of taking it together like admin:password