[this is in relation to being able to write a binary file to a remote port
using POST]
On Mon, Jul 12, 2010 at 7:30 AM, Alexander Rose <alexander.r...@weirdbyte.de
> wrote:
> 'EXACT formation'? what do you mean by that, can help somehow?
>
>
Jmol already allows posting of data in the usual key=value&key=value... form
(application/x-www-form-urlencoded). All you do is add ?POST? after the url
host name and use the load function:
x = load("http://..../whatever?POST?key=value&key=value&key=value&...")
But what we are talking about here is sending an actual FILE or file data --
an image, a zip file, the system registry(!)...
I've tweaked the Jmol code to allow posting of data, but we would need to
know the exact headers necessary to deliver binary data that way. I know it
is application/octet-stream, but I think there is more to it than that. Been
too long since I worked with that sort of thing.
Also, I think before we go further on that, we need to talk about the
security issues involved. Do we want the signed applet to be able to deliver
generic binary files to a remote machine? With no security prompt? Zip
files? images?
Bob
> Alex
>
>
> >
> > Bob
> >
> >
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > This SF.net email is sponsored by Sprint
> > What will you do first with EVO, the first 4G phone?
> > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> > _______________________________________________
> > Jmol-users mailing list
> > jmol-us...@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jmol-users
> >
> >
> >
> > --
> > Robert M. Hanson
> > Professor of Chemistry
> > St. Olaf College
> > 1520 St. Olaf Ave.
> > Northfield, MN 55057
> > http://www.stolaf.edu/people/hansonr
> > phone: 507-786-3107
> >
> >
> > 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
> >
> >
> ------------------------------------------------------------------------------
> > This SF.net email is sponsored by Sprint
> > What will you do first with EVO, the first 4G phone?
> > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> > _______________________________________________
> > Jmol-users mailing list
> > jmol-us...@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Jmol-users mailing list
> jmol-us...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
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
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers