3 ms·
The example doesnt really work $ curl https://www.geteasypost.com/api/address/verify \ > -u cueqNZUb3ldeWTNX7MU3Mel8UXtaAMUi: \ > -d 'address[s
by funthree 14y ago
The example doesnt really work
$ 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>
- bpartridge 14y agoThis is because their demo uses https, as recommended in their documentation ("We suggest that you make API requests over HTTPS..."). But, if you switch to using the http protocol, the request will return a response correctly. It's a bug. Also interesting because their website redirects http requests to the https protocol (eg. http://geteasypost.com/docs http://geteasypost.com/docs).
- jstreebin 14y agoYes, sorry about that. It's fixed so both work now
- bpartridge 14y agoGreat, thanks!
- jstreebin 14y agoOops, we were forcing SSL for Auth.net and there was an error Try this: curl http://www.geteasypost.com/api/address/verify 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'
- jstreebin 14y agoFixed!