The first and easiest to explain is to proxy through the server you  
loaded the host page from. this prevents you from violating the Same  
Origin Policy.

The second, and more complicated method is to inject a script tag that  
loads some sort of javascript object from the target server. This  
requires a server that is specifically prepared to use this technique,  
as the response must be javascript that calls a "callback function in  
your main application to provide the requested data. Googling "JSONP"  
might get you pointed in the right direction on this one.

-jason

On Mar 3, 2009, at 11:15 AM, frankCostello wrote:

>
> Hi,
> I want to make an application that call an external Server.
> how do I call an external server with Http?
> It's possible to use a Socket?
> I see the google socket (Sockets.jar) but I don't know how  do I
> comunicate with the server!


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