Hello, I was looking for an option to delete image file at the end of the process. I used deleteTask method and it returns empty result. What I do wrong here?

    $deleteUrl = 'https://cloud.ocrsdk.com/deleteTask';
    $qry_str = "?taskid=$taskid";

    $curlHandle = curl_init();
    curl_setopt($curlHandle, CURLOPT_URL, $deleteUrl.$qry_str);
    curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, false);
    $deleteId = curl_exec($curlHandle);
    curl_close($curlHandle);
    echo $deleteId;

asked 05 Sep '14, 09:59

Hemant's gravatar image

Hemant
111

edited 24 Sep '14, 15:48

Oksana%20Serdyuk's gravatar image

Oksana Serdyuk ♦♦
1.5k16


You should make sure that the request has the correct header and body. You can use HTTP debugger for this task (Fiddler or any other that is suitable for your platform). However, doing this is easier on non-secure connection. For debug purposes try to use $deleteUrl = 'http://cloud.ocrsdk.com/deleteTask'; instead of 'https://cloud.ocrsdk.com/deleteTask'.

However, for production use we strongly recommend using secure connections only.

If the issue is still actual please send to CloudOCRSDK@abbyy.com:

  1. the name of your application,
  2. the image you recognize,
  3. logs from any HTTP debugger.
link

answered 09 Sep '14, 18:56

Oksana%20Serdyuk's gravatar image

Oksana Serdyuk ♦♦
1.5k16

edited 10 Sep '14, 10:23

Andrey%20Isaev's gravatar image

Andrey Isaev ♦♦
2835

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×1

Asked: 05 Sep '14, 09:59

Seen: 741 times

Last updated: 24 Sep '14, 15:48

Related questions

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