Looking for example for loading a msg with file attachment through REST

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Looking for example for loading a msg with file attachment through REST

thelliez
New to ActiveMQ here...  

I am trying to get a sense if it is possible to send a message with a binary attachment through the REST api.

The idea is to connect a legacy application with 'curl'.  

Looking at http://activemq.apache.org/rest.html  I do not see this as an option.  

Is it possible to send something like the following (notice the -F flag):
curl -u admin:admin -d "body=message" -F "file=@localfile;filename=nameinpost" http://localhost:8161/api/message/TEST?type=queue

Thanks,
Thierry