Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Transformer test UI does not set proper headers #9

Closed
ktk opened this issue Sep 16, 2015 · 0 comments
Closed

Transformer test UI does not set proper headers #9

ktk opened this issue Sep 16, 2015 · 0 comments

Comments

@ktk
Copy link

ktk commented Sep 16, 2015

I created an OpenRefine transformer which works fine when I post data via curl. If I try to test the newly registered transformer in the Transformer test-UI it seems that neither the Accept Header nor the Content Type are properly set in the request.

Curl edition (which works):

 curl -XPOST -H "Accept:text/turtle" -H 'Content-Type:text/csv' --data-binary @20141205_AEG_ADL_ALOD_niv_doc-xlsx.csv http://sandbox.fusepool.info:8310\?refinejson\=http%3A%2F%2Fsandbox.fusepool.info%3A8181%2Fldp%2Fbla-json.json

The dialog looks like this:

screen shot 2015-09-16 at 17 01 13

In BatchRefine log I see:

batchrefine p3 14:14:47.135 [...BatchRefineTransformer] Origin:http://sandbox.fusepool.info:8200 (0ms)
batchrefine p3 14:14:47.135 [...BatchRefineTransformer] Connection:keep-alive (0ms)
batchrefine p3 14:14:47.135 [...BatchRefineTransformer] Content-Type:text/plain; charset=UTF-8 (0ms)
batchrefine p3 14:14:47.135 [...BatchRefineTransformer] Accept:*/* (0ms)
batchrefine p3 14:14:47.135 [...BatchRefineTransformer] Cache-Control:no-cache (0ms)
batchrefine p3 14:14:47.136 [...BatchRefineTransformer] Pragma:no-cache (1ms)
batchrefine p3 14:14:47.136 [...BatchRefineTransformer] ```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant