Ask Your Question

staticweb index using curl

asked 2016-04-20 17:12:47 -0500

ganges gravatar image

Following are the steps followed:

  1. Created a container with metadata 'X-Container-Meta-Web-Index: index.html' and uploaded index.html into the container.
  2. When i try to access the container using curl command, it is listing in the xml format instead of the HTML.

curl -v -H 'X-Auth-Token:671801e91c0448cdbd699198525d6d0c' http://x.x.x.x:8080/v1/AUTH_0383d48532a344a59e82afc68c78b821/gc2 (http://x.x.x.x:8080/v1/AUTH_0383d4853...) -H 'Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8'


<container name="gc1"><name>index.html</name><hash>118e07c064d5c48c62d055bdb9ec76e0</hash><bytes>37</bytes><content_type>text/html</content_type><last_modified>2016-04-18T21:12:43.067390</last_modified></container>

Am i missing anything here?

Thank you in advance.

Regards, Ganges

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-04-21 15:26:34 -0500

ganges gravatar image

Since user is an authenticated user, I am able to solve this using 'X-Web-Mode: true'. Thank you.

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


Asked: 2016-04-20 17:12:47 -0500

Seen: 22 times

Last updated: Apr 21 '16