0

I'm trying to send HTML content (page) via HTTP POST, using base64 encoding through Python code.

On the receiving side, I'm not getting the info.

This is the screenshot of the sent packet: enter image description here

This is the php page that I'm using to read the received POST (I also tried using $_POST):

<?php
echo "This is the request:<br>";
echo var_dump($_REQUEST) . "<br>";
?>

And this is the screenshot of the response packet: enter image description here

Any idea what's wrong with my code or settings (either sender or receiver side)?

When I used Content Type application/x-www-form-urlencoded on the sender side instead of text/plain;base64, the POST parameters were identified, but after decoding the base64 content, I found it full of special characters.

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
david
  • 43
  • 1
  • 7

0 Answers0