cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: Curl in command line

From: Daniel Stenberg <daniel_at_haxx.se>
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.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-02-19

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET