[Zope] http post from java applet

Dieter Maurer dieter at handshake.de
Wed Aug 17 16:06:59 EDT 2005


Jeremiah White wrote at 2005-8-16 20:37 -0400:
>I am looking at a product from radinks.com that is an applet that allows you
>to drag and drop files into the browser window and then uses HTTP post to
>upload.
>
> 
>
>In order to upload files, though, you must be logged into my site.  Even
>after you have logged in, the applet doesn't seem to have the authentication
>that the window in which it is embedded has.
>
> 
>
>How can I make the applet (or the script it calls) have the same privileges
>as the browser window it is embedded in?

You are aware that this is not a Zope questions?


I have no answer for you, just a few hints.


You must understand how your site performs authentication.
Zope usually supports two authentication kinds:

  *  Basic HTTP authentication

  *  Cookie authentication

In the first case, the HTTP client (your browser or your applet)
is responsible to add an "Authorization" header to
the request with the login information.

In the second case, the HTTP client (again your browser or your applet)
must pass on the authentication cookie (almost surely,
Zope will be ready to accept it also as a request parameter and not
only as a cookie).


In both cases, your applet must ask the browser for either
the login information (HTTP Basic authentication) or the
cookies (cookie authetication) and pass this information
on in the generated "POST" request.

-- 
Dieter


More information about the Zope mailing list