Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to retrieve a web page needing authentication in Emacs, can't get url.el to authenticate
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COThis looks fine to me. a) Are you sure it doesn't send send the authorisation (the server might either not understand Basic auth or not accept it at that page, expecting a cookie set via a login page instead) b) what version or url.el are you using? (I have heard of users having problems with my auth code with older versions of url.el) -- Have you tried a simple curl fetch to see if things work as you expect?
      singulars
    2. COThat might be it, I'm writing emacs code to enable monitoring of web pages. I have it working for non-auth webpages, and want to add in the functionality for auth webpages. Mostly for forums, i.e. you could use it to monitor for pages that have changed, but for that you need to download the authed page. Could be the forum I tried uses cookies for auth, though it has a login and pass box atop each page. Two questions then: how do I figure out if it supports auth? Is there a way to make url.el work using a preset cookie? I'm using the latest bzr checkout of Emacs, so url.el should be the latest
      singulars
    3. COI thought url.el does cookie handling for you. I.e. do the correct login-page dance to get cookies then retrieve the actual page you are interested in. Regarding supported auth methods: I suggest you try to get the page you intend with curl or wget (add suitable verbosity flags to see what gets sent, redirected etc.). If that works you should be able to mirror that with the elisp code.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload