pixelninja
08-19-2001, 07:43 AM
Hey all, I'm new here, so sorry if this happens to be a repost, I couldn't find it in any other logical place so I thought I'd post it.
For some odd reason, every alternating time I submit a search string to a PHP script, Apache generates a 501 error code, which seems to be a malfunctioning POST operation from what I can deduce. (Correct me if that's not true)
It's every other time I submit my query to search a small text file (teaching myself Flash here :D) So anyway, all the script takes is one parameter, "input" and finds it in a text file. All that works great, and it's not the code on either end I don't believe, as it parses the output properly in flash and displays the way I want it to, but for some odd reason, it's only working every other time I click the submit button I've got.
Perhaps Flash generates not-so properly formed headers and it's causing Apache to hiccup the next time around? That seems a bit odd to me, as I've yet to experience a 501 error... Anyway, access.log looks something like this (sorry for the code use, it's the only way to make it easier to read):
# -- begin snip -- #
192.168.2.128 - - [18/Aug/2001:22:56:07 +0000] "POST /~john/search.php?input=Slash&nocache=998200249000 HTTP/1.1" 200 175 "-" "Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)"
192.168.2.128 - - [18/Aug/2001:22:56:20 +0000] "" 501 - "-" "-"
# -- end snip -- #
And it's fully repeatable. Has anyone got any clues, or any previous experiences with it? I'm getting my data through a:
loadVariablesNum ("http://192.168.2.2/~john/search.php?input="+searchData, 0, "POST");
function call. Again, correct me if that's the wrong routine to be using (it seems to be right though (?)). Any help is greatly appreciated in advance!
Cheers!
For some odd reason, every alternating time I submit a search string to a PHP script, Apache generates a 501 error code, which seems to be a malfunctioning POST operation from what I can deduce. (Correct me if that's not true)
It's every other time I submit my query to search a small text file (teaching myself Flash here :D) So anyway, all the script takes is one parameter, "input" and finds it in a text file. All that works great, and it's not the code on either end I don't believe, as it parses the output properly in flash and displays the way I want it to, but for some odd reason, it's only working every other time I click the submit button I've got.
Perhaps Flash generates not-so properly formed headers and it's causing Apache to hiccup the next time around? That seems a bit odd to me, as I've yet to experience a 501 error... Anyway, access.log looks something like this (sorry for the code use, it's the only way to make it easier to read):
# -- begin snip -- #
192.168.2.128 - - [18/Aug/2001:22:56:07 +0000] "POST /~john/search.php?input=Slash&nocache=998200249000 HTTP/1.1" 200 175 "-" "Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)"
192.168.2.128 - - [18/Aug/2001:22:56:20 +0000] "" 501 - "-" "-"
# -- end snip -- #
And it's fully repeatable. Has anyone got any clues, or any previous experiences with it? I'm getting my data through a:
loadVariablesNum ("http://192.168.2.2/~john/search.php?input="+searchData, 0, "POST");
function call. Again, correct me if that's the wrong routine to be using (it seems to be right though (?)). Any help is greatly appreciated in advance!
Cheers!