The url package is used to retrieve URLs and is standard in GNU Emacs.
Questions tagged [url]
43 questions
3
votes
1 answer
Why does this url package request receive a different response than the 'equivalent' curl request?
This is for sx.el, a StackExchange client for Emacs.
I'm trying to determine whether this issue is a bug in url or a bug in StackExchange's API.
If you need the API key, please get in touch with either myself or @Malabarba – we're on the Gitter…
Sean Allred
- 6,921
- 18
- 86
1
vote
1 answer
url-retrieve-synchronously: How to retrieve Github gist list
Q: How to retrieve a list of Github gists using url-retrieve-synchronously?
I am able to visit my gist list in a web browser:
https://api.github.com/users/lawlist/gists
When I try evaluating:
(url-retrieve-synchronously…
lawlist
- 19,106
- 5
- 38
- 120
1
vote
0 answers
Why doesn't url-copy-file download these files?
I discovered this issue while trying to install all-the-icons.
One step of installation involves using url-copy-file to install fonts. After running the install script, the font files are found in the correct place but are all empty. I verified…
vaer-k
- 231
- 3
- 8
1
vote
1 answer
How can I make url.el work with the If-None-Match header?
Take the following form constructed according to :
(let ((break-url-package nil))
(let ((url-request-method "GET")
(url-request-extra-headers
`(("Content-Type" . "application/json")
,@(when break-url-package
…
Sean Allred
- 6,921
- 18
- 86
0
votes
1 answer
How can I clean url's cache?
My Emacs crashed, and now it seems like my url cache is poisoned:
error in process filter: Opening input file: No such file or directory, c:/Users/zeta/.emacs.d/url/cache/zeta/http/localhost/ffa50f273d94812bd23dff56a1ca0757 [2 times]
error in…
Zeta
- 1,093
- 9
- 18
0
votes
1 answer
Insert hyperlink with text displayed instead of actual address
Is it possible to insert a hyperlink to a website in a buffer as one can do with texinfo @url{http://ftp.gnu.org/gnu, GNU ftp site} where text is displayed instead of the actual address? My buffer in using org-mode.
Dilna
- 1
- 3
- 11
0
votes
1 answer
How can I get request.el to return data directly?
I know how to use request.el to get data and insert it into a buffer, but what if I want to simply have request.el return the data itself (e.g., for saving in a variable)?
Here's my attempt, but this doesn't actually return data (in this case a…
Alan
- 3
- 3
0
votes
1 answer
url-(https)-file-exists-p: ignore interactive behaviour when called programmatically (insecure TLS connection)
I want to use url-file-exists-p (or more precisely, the underlying url-https-file-exists-p) to detect possible broken links. However, some https link makes url-file-exists-p require interaction (This even happens when url-file-exists-p is called…
Firmin Martin
- 1,295
- 7
- 23
0
votes
2 answers
Cannot open URL link in emacs under msys
When trying to open URL link in emacs under MSYS2 I get the error browse-url-default-windows-browser: Searching for program: No such file or directory, cygstart.
Looking into the function browse-url-default-windows-browser I found out that it needed…
Evgeny Mikhaylov
- 179
- 1
- 15
0
votes
1 answer
Why isn't url-http-end-of-headers set correctly when using url-automatic-caching?
This is a follow-up question to How can I make url.el work with the If-None-Match header?
Evaluate the following form:
(let ((url-request-method "GET")
(url-automatic-caching t))
(with-current-buffer
(url-retrieve-synchronously
…
Sean Allred
- 6,921
- 18
- 86