curl-users
Re: using curl for web application
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 24 Nov 2002 18:13:54 +0100 (MET)
Date: Sun, 24 Nov 2002 18:13:54 +0100 (MET)
On Sat, 23 Nov 2002, sss wrote:
> I have run this script succesfully using telnet with :
>
> bash-2.05$ perl testcurl.pl
>
> but why when i try to run same script from web browser didn't succes.
> like =
> http://www.mysite.com/cgi-bin/testcurl.pl
>
> and when i made change to open http then succesfully run...
> $sysstring = "curl -s http://www.yahoo.com;
The last time I wrote a CGI script, it had to output "Content-Type:
text/html" or at least some suitable headers before the contents, and your
perl script didn't appear to do that.
But otherwise I can't say it makes any sense why it doesn't work.
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sfReceived on 2002-11-24