Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tika Wiki" for change 
notification.

The "TikaJAXRS" page has been changed by DaveMeikle:
https://wiki.apache.org/tika/TikaJAXRS?action=diff&rev1=29&rev2=30

Comment:
Update curl data options in examples to make clear distinction between binary 
and ascii examples

  Some Example calls with cURL:
  
  {{{
- $ curl -X PUT -d @zipcode.csv http://localhost:9998/meta --header 
"Content-Type: text/csv"
+ $ curl -X PUT --data-ascii @zipcode.csv http://localhost:9998/meta --header 
"Content-Type: text/csv"
  $ curl -T price.xls http://localhost:9998/meta
  }}}
  Returns:
@@ -133, +133 @@

  }}}
  === Get the Text of a Document ===
  {{{
- $ curl -X PUT -d @GeoSPARQL.pdf http://localhost:9998/tika --header 
"Content-type: application/pdf"
+ $ curl -X PUT --data-binary @GeoSPARQL.pdf http://localhost:9998/tika 
--header "Content-type: application/pdf"
  $ curl -T price.xls http://localhost:9998/tika --header "Accept: text/html"
  $ curl -T price.xls http://localhost:9998/tika --header "Accept: text/plain"
  }}}
@@ -149, +149 @@

  
  === PUT an RTF file and get back RTF ===
  {{{
- $ curl -X PUT -d @TODO.rtf http://localhost:9998/detect/stream
+ $ curl -X PUT --data-binary @TODO.rtf http://localhost:9998/detect/stream
  }}}
  === PUT a CSV file without filename hint and get back text/plain ===
  {{{
@@ -204, +204 @@

  
  === PUT zip file and get back met file zip ===
  {{{
- $ curl -X PUT -d @foo.zip http://localhost:9998/unpack --header 
"Content-type: application/zip"
+ $ curl -X PUT --data-binary @foo.zip http://localhost:9998/unpack --header 
"Content-type: application/zip"
  }}}
  === PUT doc file and get back met file tar ===
  {{{

Reply via email to