curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: Authentication fails on a specific website

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 4 Feb 2019 14:09:02 +0100 (CET)

On Sat, 2 Feb 2019, SATRIANI Santana wrote:

> '''
> _reqjson="{ \
> \"loginUsername\": \"${user}\", \
> \"loginPassword\": \"${pass}\" \
> }"
>
> get_cookie=$(curl \
> --header "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" \
> --data-binary "$_reqjson" \
> --header "Connection: keep-alive" "https://porkbun.com/account/login" \
> -v -L 2>&1)

It seems unlikely to be a curl issue and much more likely to be a case of you
not submitting the correct data or not using the right syntax/format.

-- 
  / daniel.haxx.se
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2019-02-04