There is an aspx page (below part of the markup code)

<form id="form1" runat="server" form method="GET"> <div> <input type="file" name="f"/></p>; </div> 

Is it possible to make it so that if you get a GET request, the file selected in the input goes to the REQUEST BODY request? Ps Ie that the file would go in GET to request similarly to POST to request. Pss know that having a body GET request is a violation of the HTTP 1.1 specification.

  • in theory, no one bothers to include a body in a get request. But in practice, you will have to dance too much. For example, the firewall can simply cut off the body (and it will be right!). You will also need to configure the server so that it handles all of this correctly, and in the case of a dotnet, I am not sure that this is possible. - KoVadim
  • Why do you need these perversions? Tell us what you did not arrange POST? Feature backend? - klutch1991
  • No, this is a training task, an attempt to explain that this is not worth doing to anything. - He1by

0