Jump to content
jakebur01

Receiving x-www-form-urlencoded POST

Recommended Posts

I have some data I'm posting from Swift to my php file via x-www-form-urlencoded.

How can I decode this POST data?

Share this post


Link to post
Share on other sites

You don't.

The data will be in $_POST. You know, like it normally is.

Share this post


Link to post
Share on other sites

That's JSON. Do you not know what you're doing?

Share this post


Link to post
Share on other sites

No, I don't. But I'm learning.  It has the x-www-form-urlencoded header.  It then is json encoded and has the json header.  So, I guess it used both.

Share this post


Link to post
Share on other sites

It can't be both... It could be that some data was JSON-encoded, then put into a urlencoded request, like

key=value&json=%7B%22a%22%3A%22b%22%7D

but that would be silly.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.