[OpenLayers-Users] OpenLayers.Ajax.Request question
Eric Lemoine
eric.c2c at gmail.com
Fri May 16 17:56:20 EDT 2008
On Fri, May 16, 2008 at 5:23 PM, Bobby H. Braswell <rob.braswell at unh.edu> wrote:
>
> Hi-
>
> I am trying to call a cgi script using OpenLayers.Ajax.Request in
> OL2.6. I have
> the following call:
>
> new OpenLayers.Ajax.Request(url, {
> method: 'post',
> parameters: {width: 150, height, 300},
> onComplete: printDone});
>
> My problem is that if the method is post I am unable to get the
> parameters with my script. If I change it to 'get' everything works
> fine. I cannot use the get method for the real call because I have
> another parameter that I need to pass which is very long and if I pass
> it with the get method then I get "URI Too Large" errors.
>
> Thanks very much.
Hello
If you open Firebug and inspect your POST request do you see your
parameters in the body? If not this looks like a problem a OpenLayers
(which I doubt). If you see them, then your problem is in your CGI
perl script and this mailing mailing isn't the right place to answer
your question.
Cheers,
--
Eric
More information about the Users
mailing list