in reply to Re: 400 bad request curl post
in thread 400 bad request curl post

am getting 400 Bad Request on my perl code

am parsing this API

API curl -H "Content-Type: text/plain" --data '{"key":"[your-key-here]","a +ddr":"183qrMGHzMstARRh2rVoRepAd919sGgMHb","callback":"https://mystore +.com?invoice_id=123","onNotification":"KEEP", "op":"RECEIVE", "confs" +: 5}' https://api.blockchain.info/v2/receive/balance_update

and the output must be like this

Response: 200 OK, application/json { "id" : 70, "addr" : "183qrMGHzMstARRh2rVoRepAd919sGgMHb", "op" : "RECEIVE", "confs" : 5, "callback" : "https://mystore.com?invoice_id=123", "onNotification" : "KEEP" }

Replies are listed 'Best First'.
Re^3: 400 bad request curl post
by stevieb (Canon) on Dec 05, 2018 at 22:25 UTC

    Pardon me. I've got a bit of a virus and am not feeling 100%.

    Because of that, perhaps I'm not seeing the relevance to Perl here. What am I missing?

    How is this related to Perl? It looks like a JSON response, if anything.

    Pardon me if I am truly missing the Perl link here.