Portal Home > Knowledgebase > Articles Database > curl command to php script


curl command to php script




Posted by XXX123, 04-09-2011, 05:47 AM
can anyone help me with an overwhelming problem ? I want to use this command in the php curl code. curl -v --data "WSCommunityStringRW?2=1200ve50set&Submit=Submit" link to the site menu -u "admin:a1s2d3" --anyauth

Posted by justroll-b, 04-30-2011, 04:26 PM
can you otherwise post your form that you wish to send over ? (are you sure you don't need any cookies ?)

Posted by jaequery, 05-03-2011, 09:20 PM
you can do exec("...cli code..."); make sure you get the path of your curl so it looks like: exec("/usr/bin/curl bla bla bla"); to find the path, just do "which curl" from your linux console.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
shorten mysql select (Views: 507)