View Single Post
  #1 (permalink)  
Old December 14th, 2014, 05:01 PM
cottonmega cottonmega is offline
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2014
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.

Last edited by cottonmega; December 14th, 2014 at 06:42 PM..
Reply With Quote