0

I am trying to parse the body of a PUT request.

When I read in the body, I get:

------------------------------db285ebe2517
Content-Disposition: form-data; name="id"

2
------------------------------db285ebe2517--

However, when I try:

parse_str($input, $tmp);

I get the same result back.

Any advice please?

Thanks

Michael Berkowski
  • 260,803
  • 45
  • 432
  • 377
john
  • 30,030
  • 12
  • 43
  • 60
  • 3
    I don't think [parse_str](http://php.net/manual/function.parse-str.php) is supposed to parse mime related strings. – Yoshi Aug 02 '11 at 10:33
  • 1
    `parse_str()` doesn't do what you are asking. It is intended to parse a URL query string. http://www.php.net/manual/function.parse-str.php – Michael Berkowski Aug 02 '11 at 10:40

0 Answers0