The development of children's shoes today in the test to a site to send a request, found that the return code is 000,
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9B/13/wKioL1ld3P6huEL8AAAvTe2DoP4175.png "title=" 1.png "alt=" Wkiol1ld3p6huel8aaavte2dop4175.png "/>
As we all know, the common return code is the following four kinds:
1) 2XX success;
2) 3XX redirection;
3) 4XX client error;
4) 5XX server-side error;
But what's 000? Simply put, there is no valid HTTP status code, such as connection is denied, connection timeout, and so on.
Use #curl-W "%{http_code}\n"-M 5 https://60.191.94.115:38303/cloudSignalling/events/deviceState; echo "Exit Code: $? take A look at the detailed code that shows
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/9B/16/wKiom1ld8QuBCLX0AADxtRYp4HA224.png "title=" 1.png "alt=" Wkiom1ld8qubclx0aadxtryp4ha224.png "/>
You can see the hint: Curl: Peer certificate cannot is authenticated with known CA certificates, translates to "the other's certificate cannot be verified with a known CA certificate". But below also said can use "K" or "--insecure" to skip this step.
So I used #curl-i- k https://60.191.94.115:38303/cloudSignalling/events/deviceState This command, the effect
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9B/17/wKiom1ld8s7Qe0Y9AACCY8jJs5g451.png "title=" 1.png "alt=" Wkiom1ld8s7qe0y9aaccy8jjs5g451.png "/>
Inside the This look said is very clear, 405, method is not correct, and then collocation #curl-K-W "%{http_code}\n"-M 5 https://60.191.94.115:38303/ Cloudsignalling/events/devicestate , take a look:
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/9B/17/wKioL1ld8__CPvbDAABjczDjVuc020.png "title=" 1.png "alt=" Wkiol1ld8__cpvbdaabjczdjvuc020.png "/>
Such a combination of the upper and lower, understand that get is not allowed to allow post. So feedback to 60.191.94.115 told them to the front and rear interface request mode, parameter transfer method all take back rectification.
Reference: http://www.1987.name/365.html
Reference: https://superuser.com/questions/501690/curl-http-code-of-000
This article is from "Life is waiting for Gordo" blog, please make sure to keep this source http://chenx1242.blog.51cto.com/10430133/1945070
HTTP return code is ...