skip to Main Content

"Unsupported Media Type" error in login API with cURL PHP

I have a problem with login in a API Software with PHP cURL. //define variable $utentesl = ... $passwordsl = ... $Appkey = ... header("CONTENT-TYPE: application/json;charset=utf-8"); header("Access-Control-Allow-Origin: *"); define('USER_AGENT', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.2309.372 Safari/537.36'); define('COOKIE_FILE',…

VIEW QUESTION

curl issue in Ubuntu 20.04

curl: symbol lookup error: curl: undefined symbol: curl_url_set, version CURL_OPENSSL_4 manish@manish-Latitude-3420:~$ sudo apt-get install curl The following NEW packages will be installed: curl 0 upgraded, 1 newly installed, 0 to remove and 0 not upgra manish@manish-Latitude-3420:~$ manish@manish-Latitude-3420:~$ curl -fsSL https://deb.nodesource.com/setup_18.x…

VIEW QUESTION

API Can curl & “–aws-sigv4” be used to call AWS IAM get user API on Amazon Web Services?

I am trying to get right request to get a user, but cannot: AWS CLI that works: aws iam get-user --user-name "${user_name}" Now, plain curl request api_addr=https://iam.amazonaws.com && curl --aws-sigv4 "aws:amz:${region}:iam" --user "${aws_key}":"${aws_secret}" "${api_addr}/?Action=GetUser&UserName=${user_name}&Version=2010-05-08" Getting a response: <ErrorResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/"> <Error>…

VIEW QUESTION
Back To Top
Search