Does
bit.ly not encode any URL with 'localhost' as the domain?
AFAICT it does not, but I haven't been able to find anything specifically talking about this in either the API docs or on the internets.
Fail example (formatted and URL simplified to make it easier to read):
login=MY_LOGIN&apiKey=MY_API_KEY&
longUrl=http%3A%2F%2Flocalhost%2F
&version=3&history=1
It works properly if the 'localhost' above is changed to '
localhost.com' or '
localhost.toast'.
Thanks,
Dano!