Here is my code

String url = "https://localhost:8443/...?...";;
RequestBuilder builder = new RequestBuilder(RequestBuilder.POST,
URL.encode(url));

// This line causes trouble:
builder.setHeader("Cache-Control", "max-age=0");

try {
     builder.sendRequest(" ", new RequestCallback() {
...



Now when I add the setHeader line then FIREBUG shows that my POST
request is actually sent as an HTTP OPTIONS request instead of POST
(?!) and the header Cache-Control is not even set.

Any ideas anyone?  Does GWT/Javascript not support the setHeader
method correctly?

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to