CGI and Offset query
CGI and Offset query
- Subject: CGI and Offset query
- From: Steve <email@hidden>
- Date: Thu, 04 Jul 2002 16:44:00 +0100
I have a script working as a CGI under Personal File Sharing on 9.2.2. It
starts with the standard
on handle CGI request this_request ,
searching for search_string ,
with posted data post_arguments ,
using access method GET_or_POST ,
from address this_client ,
from user user_name ,
using password user_password ,
with user info user_information ,
from server server_application ,
via port server_IP_port ,
executing by this_script_path ,
of content type MIME_type ,
referred by referring_page ,
from browser client_browser ,
of action type action_type ,
from client IP address client_address ,
with connection ID server_connection
Post_argument will contain file data that begins with (for example)
-----------------------------500721877211823
Content-Disposition: form-data; name="uploadfile";
filename="BOFLFSS20020801.txt"
Content-Type: text/plain
The next line is
set x to offset of "filename=" in post_arguments
Which somehow manages to return "a" as the answer.
If I write the script
return offset of "filename=" in "
Content-Disposition: form-data;
name=\"uploadfile\"; filename=\"BOFLFSS20020801.txt\""
I get 53. Which is correct. So how am I getting "a" as an answer when I do
the Offset of.... Within the handle cgi request? Could someone point out
what I'm missing?
Thanks,
Steve
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.