Answer the question
In order to leave comments, you need to log in
curl get. How to pass header from json?
The below request is not sending data:
curl -v -H "Content-Type: application/json" -H -d '{"UID": "xxx", "SID": "yyy"}' "https://abcxyz.ru/api"
> Host: abcxyz.ru
> User-Agent: curl/7.69.1
> Accept: */*
> Content-Type: application/json
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Mark bundle as not supporting multiuse
< HTTP/1.1 403 Forbidden
curl -H "UID: xxx" -H "SID: yyy" "https://abcxyz.ru/api"
> Host: abcxyz.ru
> User-Agent: curl/7.69.1
> Accept: */*
> UID: xxx
> SID: yyy
>
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [249 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [249 bytes data]
* old SSL session ID is stale, removing
{ [5 bytes data]
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question