cURL / Mailing Lists / curl-library / Single Mail


Re: print @body issues

From: Nick Chirca <>
Date: Thu, 8 Nov 2001 15:45:40 +0200 (EET)

Another "interesting" detail about this problem is that it's the 8th line
that always has an extra space in, but that space (" ") has a different
position in the string, from a case to another. I don't know where to
problem is... Maybe in the download (HTTP transaction) or the print
command... I can't think it's something stupid I did... and the problem is
a real one, because when looking to that web page with Netscape/Konqueror,
there are no extra spaces in the HTML code.


> I am using libcurl, under perl, to download some protected pages (pages
> that you normally need to connect to with an username and password, via
> web). The cookies/headers are working just fine, but I am having some
> extraction problems.
> I noticed a kind of strange behaviour... I don't know if it's something I
> am doing (or not doing), or it's a bug.
> What's happening is that after I get the web content of the page in
> @body, I do:
> print G "@body"; #I print the content into a text file,
> but, at least one of the 10 lines I extract information from has an extra
> space (" ") into it.
> This line:
> <a href=" i?PartnerUsername=punkin
> suppose to be:
> <a href="verify_show_profiles.cgi?PartnerUsername=punkin
> What's happening ?

"It's nice to be important, but it's more important to be nice !"
						SCOOTER <-- My personal web site (info about me&my life) <-- My resume/CV.
Received on 2001-11-08