p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Enterprise Android: Programming Android Database Applications for the Enterprise (http://p2p.wrox.com/forumdisplay.php?f=751)
-   -   Page 123 Enterprise Android Contact Transactions using curl (http://p2p.wrox.com/showthread.php?t=93919)

cottonmega December 14th, 2014 05:01 PM

Page 123 Enterprise Android Contact Transactions using curl
 
POST command page 123 Windows 7 curl does not work to http://wileycontacts.com:8080. I carefully typed the full POST command top of page 123 and have tested curl command with Google and Amazon successfully. I get "Failed to connect to wileycontacts.com port 8080: timed out". If I enter curl http://wileycontacts.com I get message "301 Moved Permanently". Thoughts on how I get these commands in Chapter 5 to test properly. Did URI or something else change. Thanks

I did download a different version of curl from Cygwin and set up and ran in their command window below

$ curl -X POST -H "Content-Type: application/json" -d '{"firstname":"mike","email":"mlayton@dartmouth.ed u","lastname":"layton","phone":"826-9027"}' http://wileycontacts.com:8080/spring...tacts/Contacts
curl: (7) Failed to connect to wileycontacts.com port 8080: Connection timed out

Same result using Cygwin, any assistance is appreciated.


All times are GMT -4. The time now is 01:52 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.