Created
May 14, 2014 12:57
-
-
Save hbons/d42fabc891eb3b270a08 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H "Content-type: application/json" -X PUT -d '{"loginName": "admin", "password":"123","newPassword":"SOMENEWPASSWORD"}' http://localhost:8080/ag-push/rest/auth/update | |
| * Adding handle: conn: 0x7fc8c0804000 | |
| * Adding handle: send: 0 | |
| * Adding handle: recv: 0 | |
| * Curl_addHandleToPipeline: length: 1 | |
| * - Conn 0 (0x7fc8c0804000) send_pipe: 1, recv_pipe: 0 | |
| * About to connect() to localhost port 8080 (#0) | |
| * Trying ::1... | |
| * Trying 127.0.0.1... | |
| * Connected to localhost (127.0.0.1) port 8080 (#0) | |
| > PUT /ag-push/rest/auth/update HTTP/1.1 | |
| > User-Agent: curl/7.30.0 | |
| > Host: localhost:8080 | |
| > Accept: application/json | |
| > Content-type: application/json | |
| > Content-Length: 72 | |
| > | |
| * upload completely sent off: 72 out of 72 bytes | |
| < HTTP/1.1 405 Method Not Allowed | |
| < Connection: keep-alive | |
| < X-Powered-By: Undertow/1 | |
| * Server WildFly/8 is not blacklisted | |
| < Server: WildFly/8 | |
| < Content-Type: text/html;charset=ISO-8859-1 | |
| < Content-Length: 103 | |
| < Date: Wed, 14 May 2014 12:50:57 GMT | |
| < | |
| * Connection #0 to host localhost left intact | |
| <html><head><title>Error</title></head><body>HTTP method PUT is not supported by this URL</body></html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment