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

User Agent argument switch if downloading content/images #3384

Closed
mehmetaergun opened this issue Jan 26, 2017 · 5 comments · Fixed by #3421
Closed

User Agent argument switch if downloading content/images #3384

mehmetaergun opened this issue Jan 26, 2017 · 5 comments · Fixed by #3421

Comments

@mehmetaergun
Copy link

Is it possible to allow the user to select/input a specific user agent for when pandoc retrieves files or data from a server?

For instance, I am unable to retrieve images from Facebook, which instead complains that the browser I am using is not supported. Unfortunately, I could not find a way to change the user agent myself.

Many thanks in advance :)

@mb21
Copy link
Collaborator

mb21 commented Jan 26, 2017

pandoc does not support this out of the box. however, you can either:

  • write a script (or pandoc filter) to download the files with curl or wget to the file system, or
  • use a proxy server transparently, pandoc respects the environment variable, e.g.: export http_proxy=http://127.0.0.1:3142/

@mb21 mb21 closed this as completed Jan 26, 2017
@jgm
Copy link
Owner

jgm commented Jan 27, 2017 via email

@mb21
Copy link
Collaborator

mb21 commented Jan 27, 2017

Okay, sure.. if this feature request is common enough and easy enough to implement...

btw, this would probably go into the openURL function

@mb21 mb21 reopened this Jan 27, 2017
@mehmetaergun
Copy link
Author

Thank you so very much for both the guidance and reconsidering the ticket :)

@jgm jgm closed this as completed in #3421 Feb 5, 2017
jgm added a commit that referenced this issue Mar 11, 2017
* Previously we got overlong lists with `--wrap=none`.  This is fixed.
* Previously a multiline list could become a simple list (and would
  always become one with `--wrap=none`).

Closes #3384.
jgm added a commit that referenced this issue Mar 11, 2017
The last commit referred to #3384, but should have
closed #3348.
@jgm
Copy link
Owner

jgm commented Oct 16, 2017

Note: I've removed this behavior, since we now have a --request-header option and you can do --request-header User-Agent:foo

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

Successfully merging a pull request may close this issue.

3 participants