[
https://issues.apache.org/jira/browse/TIKA-1481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14218505#comment-14218505
]
Sergey Beryozkin edited comment on TIKA-1481 at 11/19/14 9:12 PM:
------------------------------------------------------------------
Hi Darya
It is something to do with the curl options. -T is effectively a form payload
AFAIK, possibly a multipart/form-data one. The 2nd option is a direct body
payload. Please use a tcp trace and see what is different.
By the way - it would be more beneficial for the community at large if you
could ask the questions at the users list - the questions raised at JIRAs have
a very low visibility, unless they do identify genuine issues
Thanks, Sergey
was (Author: sergey_beryozkin):
Hi Darya
It is something to do with the curl options. -T is effectively a form payload
AFAIK, possibly a multipart/form-data one. The 2nd option is a direct body
payload. Please use a tcp trace and see what is different.
By the way - it would be more beneficial for the community at large if you
could ask the questions at the users list - the questions raised at JIRAs have
a very low visibility, unless they do identify genuine issue
Thanks, Sergey
> TikaJAXRS get metadata calls give different results
> ---------------------------------------------------
>
> Key: TIKA-1481
> URL: https://issues.apache.org/jira/browse/TIKA-1481
> Project: Tika
> Issue Type: Bug
> Components: server
> Affects Versions: 1.6
> Environment: Windows 8, JDK 1.8
> Reporter: Darya Arbuzova
> Priority: Minor
> Attachments: sample.csv
>
>
> Hello!
> I'm trying to use Tika in server mode.
> I downloaded tika-server-1.6.jar from http://mirror.vorboss.net/apache/tika/.
> I have tried to get file metadata in 2 different ways (as explained here:
> http://wiki.apache.org/tika/TikaJAXRS ):
> {{> curl -T sample.csv http://localhost:9998/meta --header "Content-Type:
> text/csv"}}
> {{"Content-Encoding","windows-1252"}}
> {{"Content-Type","text/plain; charset=windows-1252"}}
> and
> {{> curl -X PUT -d @sample.csv http://localhost:9998/meta --header
> "Content-Type: text/csv"}}
> {{"Content-Encoding","ISO-8859-1"}}
> {{"Content-Type","text/plain; charset=ISO-8859-1"}}
> How come they give different results in encoding if I call the same
> {{http://localhost:9998/meta}}?
> What could the other differences appear and which is the preferable way to
> get metadata?
> Many thanks!
> Best regards,
> Darya Arbuzova
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)