I'm attempting to encode the following using urlencode:
<t:RequestSecurityTokenResponse xmlns:t
which should be encoded as:
%3Ct%3ARequestSecurityTokenResponse+xmlns%3At
However, the result of urlencode is this:
%26lt%3Bt%3ARequestSecurityTokenResponse+xmlns%3At
I feel like I'm missing something extremely obvious here, but I haven't been able to figure it out. Any suggestions?