Ask Your Question
0

do a POST using curl in glance

asked 2011-12-08 13:37:33 -0500

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!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2011-12-08 16:50:53 -0500

jaypipes gravatar image

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.

http://bazaar.launchpad.net/~rconradh...

Cheers! -jay

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-12-08 13:37:33 -0500

Seen: 102 times

Last updated: Dec 08 '11