Support » Fixing WordPress » How To Access Raw $_POST Data

  • Hi, is there a way to access the raw non-SQL parsed data from $_POST or a get a list of transformations so you can reverse it? I’m using the binary data from $_POST but its adding a backslash to a single backslash to make a double backslash for example. (I am using full binary characters 0-255, I was originally sending data raw without fields but was getting blocked by web host security because of illegal characters lol)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz


    You need to run extended string data from $_POST through stripslashes() prior to use. If you have actual binary data it’s probably safest to base64 encode it prior to transport, then decode it upon receipt. This does increase the size of the data by 1/3.

    Thread Starter psufan


    Okay thanks, I was using stripslashes but I wasn’t sure if there was other conversions (like single quotes).

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.