I am trying to access the google distance matrix from rest template. I have a valid API key and when I make a call from browser it seems to work fine. I used the google code present in this link to generate the google signature. When I take the digital signature and append it to the URL manually it seems to work fine.
The problem arises when I am passing that through rest template. The call seems to work but I am getting a 403 forbidden. I did a bit or research and it seems like my digital signature is invalid for the respective URL. Can anyone clarify how my URL is valid from browser and why it is invalid from a rest template call?