WEB development with Emacs: HTTP GET and POST
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
WEB development with Emacs: HTTP GET and POST         


Author: Anton V. Belyaev
Date: Jun 20, 2008 12:28

Hello all,

I am looking for a way to make HTTP requests from Emacs and see the
response.

I've been doing WEB development for a while and found myself switching
constantly from Emacs to Firefox and back: write a piece of web
handler in Emacs - check with Firefox how it works.

This is quite reasonable when HTTP response is an HTML page.

But now I mostly work with JSON and XML - just text formats and
Firefox shows them as is. Emacs could do the same.

I guess there are many WEB developers among Emacs users. And someone
might have solved the problem already. What is the best recipe to do
this?

Thanks,
Anton.
4 Comments
Re: WEB development with Emacs: HTTP GET and POST         


Author: weber
Date: Jun 20, 2008 13:35

On Jun 20, 4:28 pm, "Anton V. Belyaev" gmail.com>
wrote:
> Hello all,
>
> I am looking for a way to make HTTP requests from Emacs and see the
> response.
>
> I've been doing WEB development for a while and found myself switching
> constantly from Emacs to Firefox and back: write a piece of web
> handler in Emacs - check with Firefox how it works.
>
> This is quite reasonable when HTTP response is an HTML page.
>
> But now I mostly work with JSON and XML - just text formats and
> Firefox shows them as is. Emacs could do the same.
>
> I guess there are many WEB developers among Emacs users. And someone
> might have solved the problem already. What is the best recipe to do
> this?
> ...
Show full article (0.94Kb)
no comments
Re: WEB development with Emacs: HTTP GET and POST         


Author: Jason Rumney
Date: Jun 20, 2008 13:44

On Jun 20, 8:28 pm, "Anton V. Belyaev" gmail.com>
wrote:
> Hello all,
>
> I am looking for a way to make HTTP requests from Emacs and see the
> response.

Try M-x browse-url-emacs.

If you want to browse urls that are in the buffer you are editing,
then you might want to customize ffap-url-fetcher to this instead of
the default browse-url, and use ffap to open the url.
no comments
Re: WEB development with Emacs: HTTP GET and POST         


Author: Xah
Date: Jun 20, 2008 19:03

Not sure exactly what is your question. Here's few tips:

• define system wide shortcuts that switch to specific apps. e.g. for
me, F6 is FireFox, F7 is emacs.

• Most PC keyboards has a Menu key. (usually on the right hand side,
between Alt and Ctrl.) This key can be set to switch to the last App.
Since most app switching is to the previous apps, this key is useful
that way.

• In emacs, you can set a shortcut to view the current file in
browser. For me, that is currently set to F8.
e.g.
...html-mode-hook...
(define-key html-mode-map (kbd "") 'browse-url-of-buffer)

• If you want a elisp lib to do HTTP query, there's http-cookies.el,
http-get.el, http-post.el
at
http://savannah.nongnu.org/cgi-bin/viewcvs/http-emacs/http-emacs/

These are used by LiveJournal mode that allows me to post blogs to lj
within emacs, which works well for me. I believe there are other http
protocol elisp code...
Show full article (2.05Kb)
no comments
Re: WEB development with Emacs: HTTP GET and POST         


Author: Bastien
Date: Jun 20, 2008 20:10

"Anton V. Belyaev" gmail.com> writes:
> I am looking for a way to make HTTP requests from Emacs and see the
> response.

Look for http-get.el and http-post.el
-- it should be on the Emacswiki.

--
Bastien
no comments

RELATED THREADS
SubjectArticles qty Group
US-NJ: Montvale-Web Developer/JAScomp.jobs.computer ·
Senior web oriented Perl developer for family notices website (telecommute), United Kingdomperl.jobs ·
US-PA: Horsham-Senior Web Developerus.jobs.offered ·
Perl Web Developer (onsite), United Kingdom, Essex, Stanstedperl.jobs ·