cURL / Mailing Lists / curl-library / Single Mail

curl-library

getting file from URI using file://

From: Vishal_garg <Vishal_garg_at_infy.com>
Date: Thu, 21 Feb 2002 12:25:01 +0530

Hi,
We are using curl-7.9.3 for client project to retrieve file from remore URI..
I am able to retrieve file using http:// and ftp:// protocols but it doesn't work for file://.
However if the file to be retrieved is located on local machine then I am able to retrieve the file using file://.
For example suppose my machine's ip-address is 192.168.122.11 then file://192.168.122.11/Share/MyXML.xml works fine.
But if I want to retrieve a file from location 192.168.122.208 at file://192.168.122.208/ipdr/MyXML.xml then libcurl fails to retrieve the file and returns '37' as error code.However the same file at remote URI, I am able to retrieve through browser.

Please suggest a solution.A sample example retrieving a file from remote location using file:// protocol will be of great help.
Thanks.

Regards,
Vishal Garg,
Infosys Technologies Limited.
Received on 2002-02-21