Data is sent to a server via a simple http call, which can be a POST or
not. This can be done with a WRITE command, but you can also just use the
load() function. The key is to have ?POST? in the URL being "loaded" and
then if you want specifically the PNGJ binary data sent, you add _PNGJBIN_
to that.

 x = load("http://myserver/myfile.php?POST?_PNGJBIN_&name=testing";)

If you want to say, send an XYZ file to the server, you might do this:

print load("http://myserver?POST?name=t.xyz&data="; + write("xyz"))

since that will POST

name=t.xyz&data=[...xyz file data here...]

to http://myserver

(but I see there is a bug there preventing this working)



Bob


On Thu, Jan 16, 2014 at 3:42 PM, James <[email protected]> wrote:

> Hi,
>
> If you have a central database of models located on a remote server (like
> the PDB), and you are using JSmol as a local viewer and editor, how would
> you save to the central server, rather than the local machine?
>
> I know Jmol 13+ could do this by sending the output of "write" to a URL,
> but I assume one should no longer be developing with Jmol. Or do I have
> this wrong, and both will be developed in parallel?
>
> Sincerely,
> James Ryley
>
>
>
>
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to