Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-16-2009, 10:44 AM   #1
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:

curl -u admin:passw -d "getpage=..%2Fhtml%2Fhome%2Fhome_dhcp.htm&landhcps0%3Asettings%2Fstart= 200 OK" 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,

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


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

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 > Forums > Linux Forums > Linux - Networking

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

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