cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: fopen.c

From: Guenter Knauf <eflash_at_gmx.net>
Date: Fri, 4 Apr 2008 20:57:05 +0200

Hi,
> On Fri, Apr 04, 2008 at 01:33:13PM +0200, Vlad - Andrei Lazar wrote:
>> I am having a bit of a trouble getting the fopen.c example to work. It
>> compiles
>> just fine, but always chokes with this error message:
>>
>> couldn't url_fopen()
>>
>> I tried running it like this: ./fopen www.yahoo.com
>>
>>
>> Am I using it the right way?

> Yes. But fopen.c is just a test app. After it reads your URL it tries
> to open a file called "testfile" in the current directory, and that's
> where it's bombing out. If you look at the file fgets.test, you'll see
> the contents of the URL.
isnt the protocol missing? 'http://' isnt in front, so it's no URL....

Guen.
Received on 2008-04-04