Thanks everyone very nice tips and links.
Salk31& Cokol, you were right, I didn't need the "?", PHP page
wouldn't get the first parameter because of the "?"
VM, nice article and very smart hack... but it got me wondering
whether I will be able to maintain status on the server (using
sessions), es
Got this from old thread :
http://development.lombardi.com/?p=611
I hope it helps.
-VM
On Wed, Jul 21, 2010 at 7:55 AM, malrawi wrote:
> Hello Again,
>
> For a second I thought the I managed to solve the SOP by following and
> applying Google's tutorial found in
> http://code.google.com/webtoo
hi!
so if you really need to go for HTTP POST rather than get, then do so,
remove the '?' from post body, these would be required for CGI doing
GET but not in this case.
you dont need to go for JSNI!! SOP cannot be workarounded on the
client solely. You have to write simple gateway service which
btw:
you can of course abuse HTML resource reference tags allowing SOP
( like SCRIPT, IMG, IFRAME ) but they all do only support HTTP GET. If
your service you gonna talk with requires HTTP POST, there is no other
way
you can also patch your DNS but this is for sure not the way you look
for...
Hello Again,
For a second I thought the I managed to solve the SOP by following and
applying Google's tutorial found in
http://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html
But I realized that I was doing a GET request and not a POST
request :/
So I guess I am back to square 1.
I rea
Do you need that "?" at the start? Just guessing.
Maybe debug with firebug? Very nice HTTP snooping...
On Jul 18, 1:44 pm, malrawi wrote:
> Hi,
> I am really new to GWT, I tried searching the net for hours to get an
> answer to my problem with no luck. Here is what I am doing:
> I am creating a
Thanks Rob,
The problem was because I wasn't encoding the URL, Now when I think
about it, it is kind of strange because the logs show that a request
was sent but the only problem was with the $_POST, You would expect
not being able to send the request if you don't encode the url and not
send a req
Do you need the "?" ?
Maybe worth using firebug to look at what the browser is actually
sending?
On Jul 18, 1:44 pm, malrawi wrote:
> Hi,
> I am really new to GWT, I tried searching the net for hours to get an
> answer to my problem with no luck. Here is what I am doing:
> I am creating a simple
Thanks Rob,
The problem was because I wasn't encoding the URL. Wired, I would
expect the whole request to fail if I don't encode the URL.
Another thing, I received 0 (zero) as status code, i checked the
forums and it seems that it is related to SOP as you suspected. Would
having the PHP files in
Although I can't see anything obviously incorrect with your code, the
following code snippet successfully sends a POST request in my code:
public void postPHPRequest(String url, String postData){
url = URL.encode(url);
RequestBuilder builder = new RequestBuilder(Req
On 18 juil, 14:44, malrawi wrote:
> Hi,
> I am really new to GWT, I tried searching the net for hours to get an
> answer to my problem with no luck. Here is what I am doing:
> I am creating a simple EntryPoint which shows some text fields, when
> the user clicks on a button I want to send a POST
Apologies if this is a double-post, the thread didn't seem to update
the first time.
I don't see anything in particular that is wrong with your code, but
the following works for me if you want to give it a try:
public void postPHPRequest(String url, String postData){
url = URL.enc
Hi,
I am really new to GWT, I tried searching the net for hours to get an
answer to my problem with no luck. Here is what I am doing:
I am creating a simple EntryPoint which shows some text fields, when
the user clicks on a button I want to send a POST request to a php
page. The PHP page "says" tha
13 matches
Mail list logo