« Return to Thread: Post params don't show up on server side

Re: Post params don't show up on server side

by tssha :: Rate this Message:

Reply to Author | View in Thread

--- In ydn-javascript@..., "jameschao122" <jchao@...> wrote:
>
> My post parameters look something like this:
>
> "id=1180625935031062&action=get_user_prefs&data=%7B%7D"
>
> All of my posts have a parameter for ID, action, and data (sometimes
> null). And this is exactly what I'm passing in as the fourth parameters.

Without modifying any of the headers, I used Connection Manager to
send the data you provided as follows:

var data = encodeURI(
"id=1180625935031062&action=get_user_prefs&data={}"
);
var cObj = YAHOO.util.Connect.asyncRequest(
'POST',
'post.php,
callback,
data);

The URI post.php will return the results of $_POST, and
callback.success will write the results to a document.  The following
is the result:
Array ( [id] => 1180625935031062 [action] => get_user_prefs [data] => {} )

Can you talk a bit more about how your server entrypoint is configured?

Regards,
Thomas

 « Return to Thread: Post params don't show up on server side