Difference between revisions of "Curl http://localhost:8080/api/"

From wikieduonline
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 
 
 
  curl http://localhost:8080/api/
 
  curl http://localhost:8080/api/
 
  [[Client sent an HTTP request to an HTTPS server.]]
 
  [[Client sent an HTTP request to an HTTPS server.]]
  
 +
[[curl --insecure]] https://localhost:8080/api/
 +
{
 +
  "kind": "[[Status]]",
 +
  "apiVersion": "v1",
 +
  "metadata": {},
 +
  "status": "Failure",
 +
  "message": "forbidden: User \"[[system:anonymous]]\" cannot get path \"/api/\"",
 +
  "reason": "Forbidden",
 +
  "details": {},
 +
  "code": [[403]]
 +
}%
 +
 +
== Errors ==
 
  curl https://localhost:8080/api/
 
  curl https://localhost:8080/api/
 
  curl: (60) [[SSL certificate problem: unable to get local issuer certificate]]
 
  curl: (60) [[SSL certificate problem: unable to get local issuer certificate]]
Line 14: Line 25:
  
 
== Related ==
 
== Related ==
* [[curl --insecure]]
+
* <code>[[curl --insecure]]</code>
 +
 
 +
== Activities ==
 +
* [[Access Kubernetes REST API using default token]]
  
 
== See also ==
 
== See also ==

Latest revision as of 18:41, 21 October 2023

curl http://localhost:8080/api/
Client sent an HTTP request to an HTTPS server.
curl --insecure https://localhost:8080/api/
{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {},
  "status": "Failure",
  "message": "forbidden: User \"system:anonymous\" cannot get path \"/api/\"",
  "reason": "Forbidden",
  "details": {},
  "code": 403
}%

Errors[edit]

curl https://localhost:8080/api/
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

Related[edit]

Activities[edit]

See also[edit]

Advertising: