I'm having a problem using Indy HTTP (in Delphi) with the Google Contacts API.
Refer to the "ClientLogin Response" section on the following page:
http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html
The server returns 403 when authentication is incorrect or an error occurs ... as expected. However, in accordance with this document there is information in the content of the response that the client requires, for example. cause of error and conversion URL, etc.
The problem is that the Indy IdHTTP component throws an exception at 403 and the response content is empty. So far, I have not found a way to this content. I tried wrapping the Post call in an attempt ... besides reading the response stream, but it is always empty at 403.
How can I do it?
source
share