I'm trying to convert a file which is located on a remote server. I use ConvertApi for .NET.
My code:
string url = "http://test.com/myfile";
var convertApi = new ConvertApi("secret");
var response = await convertApi.ConvertAsync("web", "pdf", new ConvertApiParam("url", url));
This code fails (ConvertApi returns HTTP 500 Internal Server Error) because the remote server returns HTTP 302 Redirect with the exact file location. But ConvertApi doesn't follow this redirect for some reason.
HTTP 302 Redirect is a very common way for file storage services to handle such downloads.
Is it a bug? Am I missing something? Maybe there is a special setting that forces ConvertApi to follow redirects?