by funthree · 13y ago · 0 comments
$ curl https://www.geteasypost.com/api/address/verify \
> -u cueqNZUb3ldeWTNX7MU3Mel8UXtaAMUi: \
> -d 'address[street1]=388 Townsend St' \
> -d 'address[street2]=Apt 20' \
> -d 'address[zip]=94107'
<html><body>You are being <a href="http://www.geteasypost.com/api/address/verify">redirected</a>.</body></html>Also interesting because their website redirects http requests to the https protocol (eg. http://geteasypost.com/docs).
Try this:
curl http://www.geteasypost.com/api/address/verify \ -u cueqNZUb3ldeWTNX7MU3Mel8UXtaAMUi: \ -d 'address[street1]=388 Townsend St' \ -d 'address[street2]=Apt 20' \ -d 'address[city]=San Francisco' \ -d 'address[state]=CA' \ -d 'address[zip]=94107'