Allow HTTP headers for POST request #329


Open
  • FireController1847 created this issue Feb 20, 2022

    Hi there,

     

    I absolutely love this plugin, it is my favorite plugin. I just found a limitation of the plugin recently, which surprised me since there are not many of those.

     

    When making an HTTP POST request, there is not a "Content-Type" header set or applied at all, so there is no way to change the content type depending on what you want to do. As such, it makes it non-viable to use the POST method for anything other than essentially raw text or binary data.

    Would it be possible for you to add a, alongside the "post_parameters" and "user_agent" options, a "post_headers" option? Or maybe a "headers" option? So that we can set our own headers? I could see this being highly applicable for both GET and POST requests and will make this command type even more powerful than it already is :)

    Thank you for this awesome plugin, and thank you for reading!!

  • ivanfromitaly posted a comment Mar 11, 2022

    Next time i put hand on the plugin i see what i can do. No ETA

  • FireController1847 posted a comment Mar 30, 2022

    Thank you!!! <3


To post a comment, please login or register a new account.