I am using:
C++B XE4 Pro 32 bit VCL platform
WebCopy 2.4.4.0I am trying to grab the error message returned from the API call below:
https://www.quandl.com/api/v3/datasets/LME/PR_AL/data.json?api_key=myapicode
When I place this API call in a web browser (I am using Chrome) I get a .json file displayed as seen below.
{ "quandl_error": { "code": "QEAx01", "message": "We could not recognize your API key. Please check your API key and try again." } }
When I place this call into TWebCopy it does not save the .json error file. I also can't see the .json error message in the two WebCopy error events below. These only display the HTTP error code.
WebCopy1Error(TObject *Sender, int ErrorCode){ }
WebCopy1ErrorInfo(TObject *Sender, int ErrorCode, UnicodeString ErrorInfo){ }
Is there any way I can access this .json error message response from the API using TWebCopy?