Hi everyone,
We use GWT extensively for a highly interactive user interface that
administers various software and hardware systems via a combination of
APIs.
Right now I need to introduce functionality for file upload that is
posting (HTTP POST) to an SSL URL with preemptive BASIC AUTH. We are
using GWT 1.7 and cannot upgrade to 2.0 at this point by the way.
I have noticed that RequestBuilder provides the means to set a user
and password but do not know how to use this in conjunction with
FormPanel and the FileUpload widget. Although I suspect that a
successful "no op" RequestBuilder request will be enough to provide
authentication for following requests in the same session.
My real problem is making any request as I don't appear to be able to
POST to a SSL protected URL at all.
e.g.
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,
"https://mydomain/other/");
rb.setUser("myuser");
rb.setPassword("mypass");
rb.setHeader("http.authentication.preemptive", "true");
The URL definitely exists and is listening - I can post it using other
clients.
"Access to restricted URI denied"
I suspect I'm not even getting out of the browser but thought that it
should work as long as I'm on the same domain - would a different port
(which I do have) cause the same security gate to close?
Cheers,
Chilly.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.