Mailinglist Archive: opensuse (2459 mails)

< Previous Next >
[opensuse] Editing Text Retrieved via HTTP GET & Saved via HTTP POST?
  • From: Randall R Schulz <rschulz@xxxxxxxxx>
  • Date: Sat, 1 Mar 2008 10:18:57 -0800
  • Message-id: <200803011018.57405.rschulz@xxxxxxxxx>
Hi,

I have a Web service with a REST interface that allows retrieval and
update of some text held in a persistent storage system (DBMS-based).

I discovered (somehow) that Vim will, when invoked on an HTTP URL,
retrieve the bytes from that URL and load them into the editing buffer.

However, it has no way of saving them back using HTTP POST. Some digging
led me to the "netrw" Vim extension script that provides the sort of
remote file read/write I'd like except that HTTP is not supported.


So, my question is: Does anyone know of an editor that can do this?
Apart from the URL the only parameter required to POST the new data
back to the server is the name of the HTTP parameter name with which to
associate the uploaded data. That value is under my control, if it
would be helpful to pick some specific value instead of the one I
chose.

In the interim, I wrote a simple script that uses CURL to send the file
and bound it to a key combination in ~/.vimrc, but I'm wondering if
there's something a little more direct available.

While I personally need a solution that is _other_ than Emacs, I also
have a user for this Web service who _is_ an Emacs user, so I'd be
interested in solutions for Emacs, too.


Thanks.


Randall Schulz
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >