"406 Not Acceptable" is what I get with -i option.  Thanks for pointing me to 
it.

While playing around, I found that if my url has row_id followed by column name 
then I get the output I expect !

curl -H "Accept: application/octet-stream" 
http://localhost:8000/<table_name>/<row_id>/<column_name>

-----Original Message-----
From: Todd Lipcon [mailto:[email protected]] 
Sent: Thursday, July 29, 2010 7:47 PM
To: [email protected]
Subject: Re: stargate response in binary format

Hey Avani,

What happens if you also specify the "-i" flag to curl to dump the header
output?

-Todd

On Thu, Jul 29, 2010 at 6:38 PM, Sharma, Avani <[email protected]> wrote:

> Hi,
>
> I want to get  binary output from HBase via stargate.
>
> I used -H "Accept: application/octet-stream" format as described at
> http://wiki.apache.org/hadoop/Hbase/Stargate
> However, my simple curl command comes back with 0 bytes.  What does this
> mean -" If the encoding is binary, returns row, column, and timestamp in X
> headers: X-Row, X-Column, and X-Timestamp, respectively". Am I missing  some
> initial setup for binary output to work?
>
> I am doing this to avoid stripping headers from stargate's response, when
> integrating this in C++ using libcurl.
> Curl command looks like:
>
> curl -H "Accept: application/octet-stream" http://localhost:8000/
> <table_name>/<row_id>
>
>
> Thanks,
> -Avani
>
>


-- 
Todd Lipcon
Software Engineer, Cloudera

Reply via email to