Results 1 to 1 of 1
I want to use the POST method in a curl command to a router that has authentication:
Code:
curl -u admin:passw http://192.168.1.1 -d "getpage=..%2Fhtml%2Fhome%2Fhome_dhcp.htm&landhcps0%3Asettings%2Fstart=192.168.1.33&landhcps0%3Asettings%2Fend=192.168.1.69&landhcps0%3Asettings%2Fstaticip5%2Fmac=HTTP/1.0 200 OK" http://192.168.1.1/cgi-bin/webcm
192.168.1.1 is my ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-16-2009 #1Just Joined!
- Join Date
- Mar 2008
- Posts
- 4
Help with curl
I want to use the POST method in a curl command to a router that has authentication:
192.168.1.1 is my routerCode:curl -u admin:passw http://192.168.1.1 -d "getpage=..%2Fhtml%2Fhome%2Fhome_dhcp.htm&landhcps0%3Asettings%2Fstart=192.168.1.33&landhcps0%3Asettings%2Fend=192.168.1.69&landhcps0%3Asettings%2Fstaticip5%2Fmac=HTTP/1.0 200 OK" http://192.168.1.1/cgi-bin/webcm
The post message is later of -d option. I want to change the dhcp options.
My problem is that my router have login and password, and it didn't work. so I need to know what I should change in the sintax of the command in order to authenticate and send the post message at the same time? is it possible?
Thanks in advance,
Pedro


Reply With Quote
