Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass CURL options to CLI? #866

Open
abhinavsohani opened this issue Jun 12, 2024 · 2 comments
Open

How to pass CURL options to CLI? #866

abhinavsohani opened this issue Jun 12, 2024 · 2 comments

Comments

@abhinavsohani
Copy link

I am using the MediaInfo CLI on AWS Lambda, and while it works as expected for most cases, it fails for certain URLs with the error message "Maximum (3) redirects followed". To resolve this issue, I need to pass the --max-redirs <num> option to the underlying CURL request.

I have attempted to use the --file_curl option like this: --file_curl=--max-redirs 50, but it did not work as expected.

It would be great if there was a way to pass CURL options directly to the MediaInfo CLI, allowing for more flexibility and control over the HTTP requests made by the tool.

@JeromeMartinez
Copy link
Member

we can not map automatically curl command line options to libcurl API because the curl option are part of curl command line, so we need to manually map them one per one :( (or find a way to get a list from the lib).
A single option is not difficult to add, accepting all of them longer.


Accepted.

Warning: non-sponsored feature request are set to low priority, we don't know when we have time to handle it.
If you desire to accelerate the development, don't hesitate to contact us for a quotation.

@iamdb
Copy link

iamdb commented Aug 21, 2024

I apologize if I am hijacking this issue and can create a new one if necessary, but I am facing a similar problem and was hoping for some additional information to help me move forward.

Is there any information about how to use the File_Curl option in general? I am having trouble figuring out the right format to pass to the option function in libmediainfo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants