I have tested my user name and password in the ios app and it works. When i am trying to implement the http request, I get a 401 error. I am using Parse cloud code, but it is very similar to javascript.

I don't understand what the documentation means by "Authorization: Basic <applicationid:applicationpassword>" *I have tried to put the username and password in URL: url : "http://APPID:PASS@cloud.ocrsdk.com/submitImage", method : 'POST', body : image.buffer,

  • I have tried adding the line as a header: url : "http://cloud.ocrsdk.com/submitImage", method : 'POST', body : image.buffer, headers: { 'Authorization' : 'Basic AppId:password', }, Can someone clarify?

asked 13 Jan '14, 00:16

CastroOCR's gravatar image


In the C# sample you can find what header should be specified.

I don't know how exactly it should be done in your development environment, probably in the same way as in JavaScript sample.

You should make sure that the request has the correct header and body (in particular, that it is encoded in base64). You can use HTTP debugger for this task (Fiddler or any other that is suitable for your platform).


answered 16 Jan '14, 17:03

Anastasia%20Galimova's gravatar image

Anastasia Ga... ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 13 Jan '14, 00:16

Seen: 1,157 times

Last updated: 16 Jan '14, 17:03

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal