do a POST using curl in glance

Asked by Guilherme Santos Souza on 2011-12-08

Hello Folks,

i'm trying to add a new image in glance server by a http request, i was using curl but i just got a GET resquest for all public images, using the command "curl http://$adress/images", i've researched and read that i must send a MIME-encoded at POST request, how can i do this operation?

tks for help!

Question information

English Edit question
Glance Edit question
No assignee Edit question
Last query:
Last reply:
Jay Pipes (jaypipes) said : #1

You don't want to send it using MIME-encoding. You want to just transfer the image data using application/octet-stream I think...

We used to have a test case that used curl. Had to dig up an old branch, but the command calls should be similar. They show how to upload data to Glance using just curl.


Can you help with this problem?

Provide an answer of your own, or ask Guilherme Santos Souza for more information if necessary.

To post a message you must log in.