You don't need POST method for passing username and password. username and password are sent in header and they are base 64 encoded. The name of the header should be "Authorization" and its value should be "Basic BASE64ENCODE(CONCATENTAION_OF_USERNAME_AND_PASSWORD…