-17

How can i send special characters like & over POST request?

nircraft
  • 8,242
  • 5
  • 30
  • 46
  • 2
    http://php.net/manual/en/function.urlencode.php – AbraCadaver May 29 '18 at 17:14
  • Question doesn't make much sense – why would you *not* be able to send & through POST? If you have code that doesn't work, you'll solve your real problem much faster if you show it. – JJJ May 29 '18 at 17:17
  • Thanks. It worked – Dmitry Khotinskiy May 29 '18 at 17:19
  • please visit this link : https://stackoverflow.com/questions/17342671/pass-a-percent-sign-in-a-url-and-get-exact-value-of-it-using-php. I hope this link helps you. – rahul singh Chauhan Jul 21 '18 at 08:51
  • Does this answer your question? [PHP escape special character in URL param](https://stackoverflow.com/questions/11257285/php-escape-special-character-in-url-param) – tripleee Sep 05 '22 at 08:25

1 Answers1

1

You can send the & character by using the %26 code.

It would be better practice to use the urlencode php function as mentioned by AbraCadaver above

jay_aye_see_kay
  • 522
  • 5
  • 12