1
I am trying to post data to a web sever using curl -d and curl -X POST. The command is getting succeeded but nothing is there in the file. Tried the following:
[root@oooatis santoshi]# curl --data-urlencode "file=`cat write.pl`" http://santoshi-dev-02.ocarina.local/bharat
[root@oooatis santoshi]# curl -X POST --data "file=`cat write.pl`" http://santoshi-dev-02.ocarina.local/bharat
But nothing is there in bharat on the host.
[root@Santoshi-DEV-02 html]# cat /var/www/html/bharat
[root@Santoshi-DEV-02 html]#