javascript - HTTP POST variable being corrupted when retrieving through PHP and Apache2 -
sorry if comes across bit on place. have odd problem , i'm not totally sure of cause (as i've not been able reproduce can see apache logs exists)
i have code failing because being passed incorrect data, data passed php script in javascript ajax call (using dhtmlxajax.post)
sometimes, data passed in ajax call has been returned ajax call php backend.
anyway, end result data passed php incorrect. i've seen has tried post entire web page content rather id instance.
which me says data being put ajax post wrong (or $_post variable corrupt?)
i read somewhere slow connections or browsers/isps? don't send content length in header or , apache can chunk requests, potential issue?
i don't know if i'm barking wrong tree though, appreciate pointers or tips on how potentially debug issue.
at moment can't fail myself, can see failed queries in apache logs.
thanks
update 1
i don't think limited ajax calls. i've been looking through of other occasional errors , coming form posts (via javascript using document.forms["myform"].submit(); )
so it's not going ajax specific issue.
could because of apache being overloaded traffic or , therefore garbling post variables?
update 2
i've installed log4javascript , errorception (which recommend highly! http://errorception.com/)
and i'm noticing odd occasion urls being called becoming corrupted.
i'm noticing lot of variables in url string have after them
¤t
e.g.
page.php?a=111&b=222¤t&c=333
any ideas symbol means?
i've had few occasions of javascript files saying can't downloaded
the download of specified resource has failed.
and few instances of javascript errors saying ") expected"
but thing page never fails when use it, , doesn't fail lot no users have moaned issues.
so i'm guessing fails on rare occasion , user refreshes page.
but want bottom of causing these random failures.
is there anyway of logging apache know if has failed return page (or become overloaded?)
update 3
ok i've noticed random character in url
the param should "currentclassification"
but coming out "¤tclassification"
so url should be
page.php/param=1¤tclassification=2&third=3
but it's coming out as
page.php/param=1&¤tclassification=2&third=3
so how url corrupted? apache, php or javascript?
update 4
just quick update, line calling url in php "header" redirect.
e.g.
header("location: page.php/param=1¤tclassification=2&third=3"); exit();
would make difference anything?
Comments
Post a Comment