Re: How to send a POST request by wget same to a httpie request?

2020-07-21 Thread Ander Juaristi
You can send POST requests, with --method=POST. Multipart bodies are not, and will probably never be, supported in wget. There is ongoing work to implementing them in wget2, however [0]. You might want to check it out. Having said this, in wget you can send the contents of a file as a body

How to send a POST request by wget same to a httpie request?

2020-07-01 Thread Peng Yu
$ http --form POST localhost:9000 f...@1.txt The above httpie (https://httpie.org/) command will send the following POST request. Could anybody let me know what is the equivalent wget command to achieve the same HTTP request? Thanks. POST / HTTP/1.1 Host: localhost:9000 User-Agent: HTTPie/2.2.0