cute-jumper / gscholar-bibtex

Retrieve BibTeX entries from Google Scholar, ACM Digital Library, IEEE Xplore and DBLP
107 stars 12 forks source link

Fabricate a cookie to inject for url-retrieve (issue #12) #13

Closed treese closed 8 years ago

treese commented 8 years ago

Unfortunately, adding a cookie as an extra header ends up with multiple cookie headers, which isn't really allowed in current HTTP specifications, and not accepted by Google in any case. (There is a comment in url-cookie.el complaining about servers that don't accept multiple Cookie: headers, but the current specs are clear on this now.)

So we inject a new cookie into the Emacs cookie storage, set to expire an hour from now.

cute-jumper commented 8 years ago

Awesome. Thanks! I can't reproduce the problem described in #10 and #11, so it is not possible for me to confirm that whether this solves the problem or not. However, this fix sounds quite reasonable and it works nicely. I would merge this and leave the issue #12 open for feedback.