When using netcat in linux, I can do a get fine from the command line.
nc google.com 80
GET / HTTP/1.1
Host:google.com
Can someone please show me how to do a post. I tried with no luck. I also tried different combos with \r\n or just a new line. I can get it working in perl and c.
nc google.com 80
POST /test.php HTTP/1.1
Host:whatever.com
Content-Type:text/html
Content-Length:10
text=hello
The header shows it was successful but nothing gets returned ? Please help