Closed hortonberman closed 5 years ago
Thanks for the report! I unfortunately can't offer much help in terms of debugging why curl itself isn't working, I'd recommend reading curl
documentation and user questions/etc for libcurl itself, and possibly contacting the upstream libcurl project for assistance.
on command line run curl : curl -u kkkkk:yyyyy --digest -X POST http://127.0.0.1:80/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"create_address","params":{"account_index":0,"label":"new-sub"}}' -H 'Content-Type: application/json'
this woks.but follow code. rut it . 401 Unauthorized.
let mut body = r#"{"jsonrpc":"2.0","id":"0","method":"create_address","params":{"account_index":0,"label":"new-sub"}}"#.as_bytes();
easy.http_auth(&auth).unwrap();
run above code. 401 Unauthorized, what happend? curl-rust don't support digest Auth?