cURL / Mailing Lists / curl-users / Single Mail


Re: Curl in command line

From: Daniel Stenberg <>
Date: Thu, 19 Feb 2009 08:21:28 +0100 (CET)

On Wed, 18 Feb 2009, aliahsan naqvi wrote:

> I have code in php the get a page using curl. And it work fine and i dont
> see any html tag just my required text. Now i want to do it from command
> line but when ever i use command curl URL. it give me html tage and text. So
> i couldnt find out how i will only get my requird text like we see in
> browser.and i aslo did in php same thing.I am using linux.

curl gets the URL and outputs it to stdout or to a given file. If you want to
change that (what is stored or what is shown), you can easily write a script
or sed line or similar that alters or limits what is shown. Exactly like you
do it with PHP.

List admin:
Received on 2009-02-19