Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. curl -v -u admin:geoserver -X POST -H "Content-type: text/xml" -d "<User> <username>testu</username> </User>" http://localhost/geoserver/rest/usergroup/users
  2.  
  3. Note: Unnecessary use of -X or --request, POST is already inferred.
  4. * Trying 127.0.0.1...
  5. * Connected to localhost (127.0.0.1) port 80 (#0)
  6. * Server auth using Basic with user 'admin'
  7. > POST /geoserver/rest/usergroup/users HTTP/1.1
  8. > Host: localhost
  9. > Authorization: Basic XXXXXXXXXXXXXX
  10. > User-Agent: curl/7.47.0
  11. > Accept: */*
  12. > Content-type: text/xml
  13. > Content-Length: 41
  14. >
  15. * upload completely sent off: 41 out of 41 bytes
  16. < HTTP/1.1 405 Method Not Allowed
  17. < Date: Tue, 24 Jan 2017 04:57:58 GMT
  18. < Server: Noelios-Restlet-Engine/1.0..8
  19. < Allow: GET
  20. < Content-Length: 0
  21. <
  22. * Connection #0 to host localhost left intact
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement