« 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:

>
> OK, seems like the problem is with the "Content-Type" header.
>
> By default, it is "application/x-www-form-urlencoded; charset=UTF-8".
>
> When I change it to "application/x-www-form-urlencoded", it works.
>
> Does anybody know if this is the right way to do it or why the default
> value doesn't work??
>
> BTW, this is the code I'm doing to change the header:
>
> YAHOO.util.Connect.setDefaultPostHeader(false);
> YAHOO.util.Connect.initHeader('Content-Type',
> 'application/x-www-form-urlencoded');

Interesting.  Can you show the actual POST message you're sending as
the fourth argument?

Regards,
Thomas

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