Sorry, guess I could have been more specific there. My HTTPRequest.asyncGet() returns false. I'm sure I'm passing the correct path to it because if I take that same URL and paste it into a web browser (I'm using safari on Mac OSX) I get the PHP JSON output that I expect. I also get the output I expect if I paste it into the hosted mode browser, as long as I put it the site's URL into the whitelist. If I compile the project, and then load the project's HTML file into my browser, that also loads the GWT output that clearly got the JSON data from the HTTPRequest. I'm assuming that's because in this case there's only one server involved as I'm just loading the HTML locally and calling the remote PHP from that, instead of it being called from GWT's hosted Tomcat.
If I put the whitelist entry on the hosted mode arguments, I don't get any data at all back from my HTTP Request, even though I can load the needed URL into that same session of the hosted browser and get the JSON data manually. Basically, the whitelist seems to work when I manually type a remote URL in, but if I give that same URL to an HTTP Request, it won't return data if I'm running in hosted mode. It will fail. On Oct 17, 6:08 am, "Amit Dhingra" <[EMAIL PROTECTED]> wrote: > Hi, > I am using the same development setup, wamp and the hosted browser, and it > works very fine... > > On Fri, Oct 17, 2008 at 10:16 AM, Lucas86 <[EMAIL PROTECTED]> wrote: > > > I'm trying to do an HTTPRequest.asyncGet() to a simple PHP script. I'm > > running the request from hosted mode, and it fails to retrieve data. > > If I run the compiled site in a local browser, I can get the data that > > I expect. > > You dont get data what you expect... does it mean that you get some data??? > > > > > I know that the local server can't access remote sites for security > > reasons (I've uploaded the PHP already), but I've added the site where > > the PHP is stored to the whitelist. I can access the site if I type it > > into the hosted browser, it originally complained and I added it to > > the list so I know my whitelist entry is working in that sense, but > > when I load my GWT project that calls the exact same address in the > > asyncGet it still won't load the data. > > Are you accessing the php through the correct path??? > > > > > Do I just have the wrong idea of what the whitelist can handle? I > > thought this was exactly what it was there for, but I haven't been > > able to get it to work. > > -- > Warm Regards, > Amit Dhingra --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
