in reply to 400 bad request curl post

What doesn't work... the Perl or the curl?

Your subject line nor your post clarify what the problem is.

Replies are listed 'Best First'.
Re^2: 400 bad request curl post
by bigup401 (Pilgrim) on Dec 05, 2018 at 21:56 UTC

    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" }

      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.