Questions tagged [http]

14 questions
15
votes
3 answers

Go to body after url-retrieve-synchronously

I use url-retrieve-synchronously to download a JSON file from a remote server. This function returns a buffer which contains the entire content of the response, including HTTP headers. However, I'm just interested in the body. Now, short of…
user227
5
votes
1 answer

Is ELPA broken?

Emacs 26.1 as packaged in Debian buster. After doing M-x package-list-packages I can select any package from the MELPA repo https://melpa.org/packages/ and then install it. But when I try to get any package from the GNU ELPA repo…
q.undertow
  • 314
  • 1
  • 9
5
votes
1 answer

Sending application/x-www-form-urlencoded data with restclient

When I use restclient with Content-Type: application/x-www-form-urlencoded, restclient sends newlines with the data. For example: POST :domain/thing Content-Type: application/x-www-form-urlencoded data=foobar The endpoint receives a form with the…
Matthew Piziak
  • 5,958
  • 3
  • 29
  • 77
3
votes
1 answer

Which package to share editing, in real-time, over http?

I seem to remember a package mentioned once, that you would activate in Emacs, and then other people could follow what happens in almost real time in your Emacs by accessing a URL with a web-browser. I can't for the life of me find the name of this…
asjo
  • 1,037
  • 8
  • 12
2
votes
0 answers

Cannot upgrade packages when adding melpa to the package-archives

I have problems upgrading packages coming from melpa: When executing list-package with "https://melpa.org/packages/" in the package-archives I get the following in the *Messages* buffer: Using a proxy for https... gnutls.c: [0] (Emacs) Received…
halloleo
  • 1,215
  • 9
  • 23
2
votes
2 answers

Can't connect to package managers on multiple computers

I just did a clean install of emacs 26.1 on multiple computers running different OS (Ubuntu, Mint, Windows), and for some reason I cannot update my packages using M-x refresh-package-contents. I've also re-installed emacs25 through apt with no…
Lee Jordan
  • 41
  • 5
2
votes
2 answers

How can I access a file at an (HTTP / HTTPS) URL?

If I have a URL to a file (for example, this gist), what's the easiest way to fetch that file from Emacs and edit a copy of it? Is there a better option than M-! curl -n [insert URL here] RET? I'd consider an answer "better" if it didn't rely on an…
camdez
  • 396
  • 3
  • 6
1
vote
1 answer

Emacs can't connect to GNU archive

I'm having a very basic problem with getting my emacs to talk to the GNU package repository. The contents of my .emacs are (require 'package) (package-initialize) (package-refresh-contents) When I start up emacs, I see Contacting host:…
1
vote
2 answers

How do I get request.el to post the contents into the buffer

I'm trying to use request.el but have no clue what I'm doing. What I want to do is create a request to Zotero that uses their citation picker using the to get a 'Cite As You Write' capability using the Better Bibtex For Zotero backend. I have…
1
vote
1 answer

Debugging a "binding stack not balanced" bug?

I'm trying to figure out how to approach a bug I've run into. I assume it's actually a bug in Emacs, but I don't know the right way to make headway with it. In short, I'm getting the message "binding stack not balanced (serious byte compiler bug)"…
abingham
  • 927
  • 6
  • 18
1
vote
1 answer

How to use skewer mode beyond localhost?

I'd like to write the code for a website on one pc and see the results in a browser on another pc in my local network. For calling the skewer script in html, I replaced localhost with the local ip of pc1 –
kai-dj
  • 427
  • 2
  • 15
1
vote
0 answers

What methods are there for posting the current buffer to website

Curious if there is anything to do this currently, basically i want to specify the parameters and post the current buffer as one of the parameters to an external website so i can skip the copy and past step. Are there any packages or what kind of…
Oly
  • 583
  • 1
  • 5
  • 15
1
vote
0 answers

Parsing nested json

I'm using request to grab a json file (here's one for instance: http://gd2.mlb.com/components/game/mlb/year_2015/month_06/day_10/grid.json) and trying to read the data. I'm interesting in looping through games and look at the score for each game.…
mast
  • 11
  • 1
1
vote
0 answers

Suggestions for a well-thought structure, for instant results inside browser from buffers

Situation First, I hope you will not mind my poor English. When you're working with websites/webapplications, there is a good chance that you will work with HTML/CSS files. When editing such files in buffers, I save it every time and reload the…