I am using curl to test my unifiedpush server setup, I had to turn off curl
performing SSL certificate verification by add -k argument in the command.
This is the command:
curl -k -3 -u
"cd085f44-4920-4164-92d8-1965ea163885:8d9e903a-8ff1-4048-b0c6-11f5c78efcbc"
-v -H "Accept: application/json" -H "Content-type: application/json"
-X POST
-d '{"message": {"alert":"Hello baby this is a test breaking
news haha
world! ab.co/1oNOpx9", "url":"ab.co/1oNOpx9"}}'
https://dymamic.com:28443/ag-push/
And this is the result:
* Hostname was NOT found in DNS cache
* Trying 54.201.126.209...
* Connected to
dymamic.com (54.201.126.209) port 28443 (#0)
* SSL 3.0 connection using SSL_NULL_WITH_NULL_NULL
* Server certificate: luke du
* Server auth using Basic with user 'cd085f44-4920-4164-92d8-1965ea163885'
POST /ag-push/ HTTP/1.1
Authorization: Basic
Y2QwODVmNDQtNDkyMC00MTY0LTkyZDgtMTk2NWVhMTYzODg1OjhkOWU5MDNhLThmZjEtNDA0OC1iMGM2LTExZjVjNzhlZmNiYw==
User-Agent: curl/7.37.1
Host: dymamic.com:28443
Accept: application/json
Content-type: application/json
Content-Length: 113
* upload completely sent off: 113 out of 113 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: 104
< Date: Thu, 06 Nov 2014 00:09:56 GMT
<
* Connection #0 to host
dymamic.com left intact
<html><head><title>Error</title></head><body>HTTP
method POST is not
supported by this URL</body></html>
I am kind stuck here, could anyone please help me on this, thanks a lot.
--
View this message in context:
http://aerogear-dev.1069024.n5.nabble.com/HTTP-method-POST-is-not-support...
Sent from the aerogear-dev mailing list archive at
Nabble.com.