<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Beginner-to-Beginner: FTP via curl</title>
	<atom:link href="http://www.hyperorg.com/blogger/2008/01/01/beginner-to-beginner-ftp-via-curl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hyperorg.com/blogger/2008/01/01/beginner-to-beginner-ftp-via-curl/</link>
	<description>Let's just see what happens</description>
	<lastBuildDate>Sun, 22 Nov 2009 01:55:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: yannito</title>
		<link>http://www.hyperorg.com/blogger/2008/01/01/beginner-to-beginner-ftp-via-curl/comment-page-1/#comment-40176</link>
		<dc:creator>yannito</dc:creator>
		<pubDate>Wed, 17 Dec 2008 13:31:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperorg.com/blogger/2008/01/01/beginner-to-beginner-ftp-via-curl/#comment-40176</guid>
		<description>hi jaya
you can send some command with curl to the remote ftp
for delete test with this
curl -Q &quot;dele &quot; filetodeletonthe remote</description>
		<content:encoded><![CDATA[<p>hi jaya<br />
you can send some command with curl to the remote ftp<br />
for delete test with this<br />
curl -Q &#8220;dele &#8221; filetodeletonthe remote</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jaya</title>
		<link>http://www.hyperorg.com/blogger/2008/01/01/beginner-to-beginner-ftp-via-curl/comment-page-1/#comment-39490</link>
		<dc:creator>jaya</dc:creator>
		<pubDate>Fri, 14 Nov 2008 05:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperorg.com/blogger/2008/01/01/beginner-to-beginner-ftp-via-curl/#comment-39490</guid>
		<description>hi all,
 I am using curl for web-server application and I am at client side. I
want to delete file and upload new file using curl command. I tried
uploading file like this 

curl -T hi.c  http://username:password@192.163.1.90/

and i got it.

But how to do delete a file using curl command ? please anyone  knows
about
this ? give me solution

I want it for http server.
please help me out.</description>
		<content:encoded><![CDATA[<p>hi all,<br />
 I am using curl for web-server application and I am at client side. I<br />
want to delete file and upload new file using curl command. I tried<br />
uploading file like this </p>
<p>curl -T hi.c  <a href="http://username:password@192.163.1.90/" rel="nofollow">http://username:password@192.1.....63.1.90/</a></p>
<p>and i got it.</p>
<p>But how to do delete a file using curl command ? please anyone  knows<br />
about<br />
this ? give me solution</p>
<p>I want it for http server.<br />
please help me out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://www.hyperorg.com/blogger/2008/01/01/beginner-to-beginner-ftp-via-curl/comment-page-1/#comment-33820</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Tue, 17 Jun 2008 15:33:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperorg.com/blogger/2008/01/01/beginner-to-beginner-ftp-via-curl/#comment-33820</guid>
		<description>everyone talks about uploading a file can someone give the commands for downloading a file using curl from an ftp server.</description>
		<content:encoded><![CDATA[<p>everyone talks about uploading a file can someone give the commands for downloading a file using curl from an ftp server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: davidw</title>
		<link>http://www.hyperorg.com/blogger/2008/01/01/beginner-to-beginner-ftp-via-curl/comment-page-1/#comment-25875</link>
		<dc:creator>davidw</dc:creator>
		<pubDate>Wed, 02 Jan 2008 23:10:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperorg.com/blogger/2008/01/01/beginner-to-beginner-ftp-via-curl/#comment-25875</guid>
		<description>Jason, I changed the line about how to check if you have curl to reflect your comment. Thanks!</description>
		<content:encoded><![CDATA[<p>Jason, I changed the line about how to check if you have curl to reflect your comment. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.hyperorg.com/blogger/2008/01/01/beginner-to-beginner-ftp-via-curl/comment-page-1/#comment-25871</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 02 Jan 2008 20:45:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperorg.com/blogger/2008/01/01/beginner-to-beginner-ftp-via-curl/#comment-25871</guid>
		<description>When checking to see if curl is installed and in your path, you may want to recommend the command
curl -V

With the capital V option, curl will display it&#039;s version information instead of the &quot;error&quot; it displays when run with no options.

Also, you explain that an executable file is runnable, but you don&#039;t explain how to open the terminal (you&#039;ll find it in Applications-&gt;Utilities) or how to change directories (cd /your/directory/path/). Just thought that might be valuable to some people who want to try this.

Finally, as a little background, &quot;cURL is a command line tool for transferring files with URL syntax, supporting FTP, ... HTTP, HTTPS, ... [and] SFTP...&quot; (&lt;a href=&quot;http://en.wikipedia.org/wiki/CURL&quot; rel=&quot;nofollow&quot;&gt;Wikipedia article on cURL&lt;/a&gt;)

As Brent explains above, the curl application can be used to simulate a series of actions, such as rebooting a home wireless router that uses a web interface to control it. 

You could also use the curl application to automate other types of work. For instance, let&#039;s say you wanted to keep track of which candidate had the most Google results for their name. You might create a script that uses curl to submit the candidates names to Google one by one, and then saves the results page to your hard drive. You could automate the running of that script using an iCal alarm, or a cron job for more advanced users. After some time goes by, you could then tabulate the results. Because you&#039;re automating your data collection, why stop with just Google? You could also collect the results from other search engines too!

The world of automation is a fantastic place, and OS X comes with a variety of tools right out of the box that let you be very effective. Thanks for this post David. You might also want to check out some basic Apple Scripts, or even the Automator tool (Applications-&gt;Automator).</description>
		<content:encoded><![CDATA[<p>When checking to see if curl is installed and in your path, you may want to recommend the command<br />
curl -V</p>
<p>With the capital V option, curl will display it&#8217;s version information instead of the &#8220;error&#8221; it displays when run with no options.</p>
<p>Also, you explain that an executable file is runnable, but you don&#8217;t explain how to open the terminal (you&#8217;ll find it in Applications-&gt;Utilities) or how to change directories (cd /your/directory/path/). Just thought that might be valuable to some people who want to try this.</p>
<p>Finally, as a little background, &#8220;cURL is a command line tool for transferring files with URL syntax, supporting FTP, &#8230; HTTP, HTTPS, &#8230; [and] SFTP&#8230;&#8221; (<a href="http://en.wikipedia.org/wiki/CURL" rel="nofollow">Wikipedia article on cURL</a>)</p>
<p>As Brent explains above, the curl application can be used to simulate a series of actions, such as rebooting a home wireless router that uses a web interface to control it. </p>
<p>You could also use the curl application to automate other types of work. For instance, let&#8217;s say you wanted to keep track of which candidate had the most Google results for their name. You might create a script that uses curl to submit the candidates names to Google one by one, and then saves the results page to your hard drive. You could automate the running of that script using an iCal alarm, or a cron job for more advanced users. After some time goes by, you could then tabulate the results. Because you&#8217;re automating your data collection, why stop with just Google? You could also collect the results from other search engines too!</p>
<p>The world of automation is a fantastic place, and OS X comes with a variety of tools right out of the box that let you be very effective. Thanks for this post David. You might also want to check out some basic Apple Scripts, or even the Automator tool (Applications-&gt;Automator).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brent Ashley</title>
		<link>http://www.hyperorg.com/blogger/2008/01/01/beginner-to-beginner-ftp-via-curl/comment-page-1/#comment-25848</link>
		<dc:creator>Brent Ashley</dc:creator>
		<pubDate>Tue, 01 Jan 2008 19:44:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperorg.com/blogger/2008/01/01/beginner-to-beginner-ftp-via-curl/#comment-25848</guid>
		<description>I use curl extensively, for instance to automate gathering of networked device configurations through their web interface.  
By using its cookie-saving features, you can use curl to automatically navigate into web apps that require login.

If you use the option &quot;-c cookies.txt&quot;, a file containing the cookies used in the transaction will be saved as cookies.txt.

If you use &quot;-b cookies.txt&quot; in subsequent calls, the cookies will continue to be be read and written during those transactions.

That is to say, if you were to want to press the reboot button on a home router from a script, it might look something like this:

#!/bin/sh
# script to reboot fictitious router.

# submit login form
curl \
  -sc cookies.txt \
  http://192.168.1.1/Login \
  -d &quot;username=admin&quot; \
  -d &quot;password=secret&quot; \
  -d &quot;submit=Login&quot;

# press reboot button on admin page
# this would fail if we didn&#039;t have the cookie
# we saved from the login
curl \
  -sb cookies.txt \
  http://192.168.1.1/Admin \
  -d submit=Reboot</description>
		<content:encoded><![CDATA[<p>I use curl extensively, for instance to automate gathering of networked device configurations through their web interface.<br />
By using its cookie-saving features, you can use curl to automatically navigate into web apps that require login.</p>
<p>If you use the option &#8220;-c cookies.txt&#8221;, a file containing the cookies used in the transaction will be saved as cookies.txt.</p>
<p>If you use &#8220;-b cookies.txt&#8221; in subsequent calls, the cookies will continue to be be read and written during those transactions.</p>
<p>That is to say, if you were to want to press the reboot button on a home router from a script, it might look something like this:</p>
<p>#!/bin/sh<br />
# script to reboot fictitious router.</p>
<p># submit login form<br />
curl \<br />
  -sc cookies.txt \<br />
  <a href="http://192.168.1.1/Login" rel="nofollow">http://192.168.1.1/Login</a> \<br />
  -d &#8220;username=admin&#8221; \<br />
  -d &#8220;password=secret&#8221; \<br />
  -d &#8220;submit=Login&#8221;</p>
<p># press reboot button on admin page<br />
# this would fail if we didn&#8217;t have the cookie<br />
# we saved from the login<br />
curl \<br />
  -sb cookies.txt \<br />
  <a href="http://192.168.1.1/Admin" rel="nofollow">http://192.168.1.1/Admin</a> \<br />
  -d submit=Reboot</p>
]]></content:encoded>
	</item>
</channel>
</rss>
