Aloha, I am trying to make a script that recieves a screen name and a date from the AOL instant messenger program. Unfortunately AIM doesn't encode a "%20" or a "+" when there is a space in the screen name. The program automatically fills in that information based on who is requesting it so I don't have any control over the formulation of the url... something like this..
%n will be automatically substituted with the screen name requesting the information.
<a href="http://myserver.com/getsn.php?sn=%n&secret=yes" target="_self">Click here to leave your name.</a>
Which AIM replaces the %n like this..
<a href="http://myserver.com/getsn.php?sn=CoolDude&secret=yes" target="_self">Click here to leave your name.</a>
Which works perfectly! Unfourtunately when there is a space it looks like this...
<a href="http://myserver.com/getsn.php?sn=Cool Dude&secret=yes" target="_self">Click here to leave your name.</a>
Now in my script $sn is just "Cool" and $secret is null.
The apache log looks like this...
adsl-x-x-x.jax.bellsouth.net - - [22/Mar/2002:01:11:33 -0500] "GET /aimstuff/getsn.php?sn=Cool Dude&secret=yes HTTP/1.0" 200 53
So I know the information is making it to the server, and I know it's possible because I've seen it done and that's where I got the idea.. How are they getting the information?
Thanks and sorry for the long post...
Lee