How do I POST a JSON file as MessageBody for Amazon SQS?

768 views
Skip to first unread message

Henrik

unread,
Nov 9, 2016, 6:36:59 AM11/9/16
to ElasticMQ
I run ElasticMQ locally to emulate Amazon SQS, and I want to send a JSON file as a MessageBody. Here's an example request that works:


If I want to send a large JSON file, it would make more sense to to that as a POST, something like this:

# Doesn't work:
     -H "Content-Type: application/json" --data @./bigdata.json

Is there a way to make this work?

Reply all
Reply to author
Forward
0 new messages