49 err =
"Remote Request failed for url: " + url +
" with error: ";
53 FILE *f = fopen(filename.c_str(),
"r");
55 err = err +
"Could not open the error file " + filename;
63 size_t bytes_read = fread(buff, 1, 1024, f);
68 if (bytes_read == 0 && bytes_read <= 1024)
69 buff[bytes_read] =
'\0';
static void read_error(const string &filename, string &err, const string &url)
read the target response file that contains textual error information