LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 03-16-2009, 10:44 AM   #1
pedropolian
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Rep: Reputation: 0
Arrow Curl command with POST method and Authentication


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 router

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

Last edited by pedropolian; 03-16-2009 at 10:46 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Method Not Allowed: The requested method POST is not allowed for the URL /writedhcp.p WiWa Linux - Networking 15 01-06-2011 01:20 PM
PHP: cUrl - post data doesn't go through proxy elvijs Programming 0 12-17-2007 08:26 AM
How can I post data with POST method in C programming. haxpor Programming 24 04-11-2007 08:34 AM
SlackWare :Method Not Allowed The requested method POST is not allowed for the URL slack31337 Linux - Software 0 04-08-2006 06:09 PM
wget/curl problems. redirection after post method tommmmmm Linux - Software 1 08-10-2005 10:36 AM


All times are GMT -5. The time now is 12:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration