RE: [PHP] RE: PHP "GET" Error?
| From: | Alice Wei | Date: | Thu, 25 Feb 2010 20:37:19 +0000 |
| Subject: | RE: [PHP] RE: PHP "GET" Error? | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-302390@lists.php.net to get a copy of this message | ||
> Alice Wei wrote:
> > Hi,
> >
> > I forgot to mention that the url is formed from Actionscript, I am just using PHP to do
> > the "I/O" because Actionscript does not have this option.
> >
> > So, I guess I cannot do the serialize here like you suggested. I have changed # to 0x
> > for now, and that does not seem to help yet.
> > BTW, below is the complete code, would this help with my choices?
> >
>
> I haven't used actionscript, but it's javascript basically yes?
>
> Use encodeURI() or encodeURIComponent() on the data.
>
>
Yes, and no. But, I did find the function in the Actionscript library, and I used the new url to
pass through to PHP. Looks like it still didn't work, could the length be an issue?
BTW, these two variables start off from Actionscript as "arrays", but would knowing
this here help? It would be nice that I can just pass them on as arrays (I had to "turn them
into strings" before I passed to PHP).
Thanks for your help.
Alice
> --
> Thanks!
> -Shawn
> http://www.spidean.com
Have you tried outputting the URL string to see if it's properly formed? AS3 can still trace()
can't it?
This link should give you an idea of the string limits of different browsers and servers:
http://www.boutell.com/newfaq/misc/urllength.html
I have just done that, and here is the pathetically long url:
http://tdc-queuing/test/generic.php?from=Adair,%20OK-Alfalfa,%20OK-Atoka,%20OK-Beaver,%20OK-Beckham,%20OK-Blaine,%20OK-Bryan,%20OK-Caddo,%20OK-Canadian,%20OK-Carter,%20OK-Cherokee,%20OK-Choctaw,%20OK-Cimarron,%20OK-Cleveland,%20OK-Coal,%20OK-Comanche,%20OK-Cotton,%20OK-Craig,%20OK-Creek,%20OK-Custer,%20OK-Delaware,%20OK-Dewey,%20OK-Ellis,%20OK-Garfield,%20OK-Garvin,%20OK-Grady,%20OK-Grant,%20OK-Greer,%20OK-Harmon,%20OK-Harper,%20OK-Haskell,%20OK-Hughes,%20OK-Jackson,%20OK-Jefferson,%20OK-Johnston,%20OK-Kay,%20OK-Kingfisher,%20OK-Kiowa,%20OK-Latimer,%20OK-Le%20Flore,%20OK-Lincoln,%20OK-Logan,%20OK-Love,%20OK-Major,%20OK-Marshall,%20OK-Mayes,%20OK-McClain,%20OK-McCurtain,%20OK-McIntosh,%20OK-Murray,%20OK-Muskogee,%20OK-Noble,%20OK-Nowata,%20OK-Okfuskee,%20OK-Oklahoma,%20OK-Okmulgee,%20OK-Osage,%20OK-Ottawa,%20OK-Pawnee,%20OK-Payne,%20OK-Pittsburg,%20OK-Pontotoc,%20OK-Pottawatomie,%20OK-Pushmataha,%20OK-Roger%20Mills,%20OK-Rogers,%20OK-Seminole,%20OK-Sequoyah,%20OK-Stephens,%20OK-Texas,%20OK-Tillman,%20OK-Tulsa,%20OK-Wagoner,%20OK-Washington,%20OK-Washita,%20OK-Woods,%20OK-Woodward,%20OK&state_colors=0xFFFFCC-0xFFFFCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF
This is generated from the encodeURI() Shawn was talking about. Does this seem
"well-formed" to you?
Thanks.
Alice
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/201469227/direct/01/
I can't see anything obviously wrong with the URL really. Is there no way instead to send the
data as post data from Flash? I know Flash can make post requests, but I'm not sure how much
more difficult it is.
I had it using POST before, but from the PHP point of view, it does not matter how I make the
request, does it? I mean, if the variables are problematic, would it matter if I use POST or GET?
Thanks.
_________________________________________________________________
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
http://clk.atdmt.com/GBL/go/201469226/direct/01/