basho/riak_wiki — pull request #228 by solarce (2011-12-13 06:03:46+00:00)
Title: Noticed when going through the Fast Track that if you use the verbatim curl in the delete example, you get a 404

When you use `curl -v -X DELETE http://127.0.0.1:8091/riak/test/test2` like in the [delete example](http://wiki.basho.com/Basic-Riak-API-Operations.html#Object-Key-Operations), it returns a 404, as shown below

```
basalt riak-1.0.2/dev » curl -v -X DELETE http://127.0.0.1:8091/riak/test/test2
* About to connect() to 127.0.0.1 port 8091 (#0)
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 8091 (#0)
> DELETE /riak/test/test2 HTTP/1.1
> User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8r zlib/1.2.3
> Host: 127.0.0.1:8091
> Accept: */*
>
< HTTP/1.1 404 Object Not Found
< Server: MochiWeb/1.1 WebMachine/1.9.0 (someone had painted it blue)
< Date: Tue, 13 Dec 2011 05:53:10 GMT
< Content-Type: text/plain
< Content-Length: 10
<
not found
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
```

So I added the path I got from when I got my **Location** back in the previous example, added that to the URL, as when I got my 404 and looked it it for a minute, my first guess was I should use the path from the previous example, since the examples build upon one another, and that worked, as shown below.

```
basalt riak-1.0.2/dev » curl -v -X DELETE http://127.0.0.1:8091/riak/test/2AyIYUN3tEhl2swi05Ycq1tgPcU
* About to connect() to 127.0.0.1 port 8091 (#0)
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 8091 (#0)
> DELETE /riak/test/2AyIYUN3tEhl2swi05Ycq1tgPcU HTTP/1.1
> User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8r zlib/1.2.3
> Host: 127.0.0.1:8091
> Accept: */*
>
< HTTP/1.1 204 No Content
< Vary: Accept-Encoding
< Server: MochiWeb/1.1 WebMachine/1.9.0 (someone had painted it blue)
< Date: Tue, 13 Dec 2011 05:53:44 GMT
< Content-Type: text/plain
< Content-Length: 0
<
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
```

Finally, I added a bullet to clarify, so that user does not get back a 404 if they weren't looking closely.