JSON requests with authorization and cross-site

2010-10-05 Thread Wouter
Hi there,
im quite new to GWT and i can not figure this one out...
I want to do a JSON request to a server which would normally show me a
popup to fill in my username and password. How can i access this with
GWT? i tried the request builder and using setPassword and setUser but
it doesnt work for me. The statuscode I receive after I make my
request is '0' which i think is weird...

can anybody help me out with this?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: JSON requests with authorization and cross-site

2010-10-05 Thread lineman78
If it is basic auth then you should just be able to use JSONP, since
it is cross site, if form auth you will need to have them auth before
making the request.  Remember you can't make cross site requests
directly, but JSONP allows you to work around that.  Since it is an
authenticated request a server-side proxy is not really an option, so
you are pretty much stuck with JSONP.

On Oct 5, 2:18 pm, Wouter wouterwillem...@gmail.com wrote:
 Hi there,
 im quite new to GWT and i can not figure this one out...
 I want to do a JSON request to a server which would normally show me a
 popup to fill in my username and password. How can i access this with
 GWT? i tried the request builder and using setPassword and setUser but
 it doesnt work for me. The statuscode I receive after I make my
 request is '0' which i think is weird...

 can anybody help me out with this?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.