Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curl on Windows #107

Open
qvrb opened this issue Nov 14, 2018 · 0 comments
Open

Curl on Windows #107

qvrb opened this issue Nov 14, 2018 · 0 comments

Comments

@qvrb
Copy link

qvrb commented Nov 14, 2018

In trying to get this working, i had no problem running curl on ubuntu and getting the text back from the ocr webservice. however, when i tried to run curl on windows I got an error back saying unable to unmarshal json, after a fair amount of time (not being familiar with docker compose), i got into the log (docker-compose logs) and worked out it's something to do with illegal characters - this is kinda mentioned in issue 49, but the answer isn't so the curl command for windows should be

curl -X POST -H "Content-Type: application/json" -d "{\"img_url\":\"http://bit.ly/ocrimage\",\"engine\":\"tesseract\"}" http://MY-HOST-IP-ADDRESS:9292/ocr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant