cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: 404 error at upload (when file exists)

From: Fabian Matyas <fabianmatyas_at_yahoo.com>
Date: Wed, 23 Feb 2005 00:33:06 -0800 (PST)

Unfortunately our server is a black box. We cannot
connect an output device to it.

--- Seshubabu Pasam <pasam_at_seshubabu.com> wrote:

---------------------------------
    What does the web server logs say? Did you check
them?

-Seshu

Fabian Matyas wrote:
  
Hi everyone!I'm writing a kind of browser on Mac OS X
10.3.5 whichshould be able to upload/download/remove
files from aserver. Here is the scenario when the
problem appears:while I'm doing an upload of a folder,
Iremove/download a file from the server. This
laterfile is not related to the folder. From this
point on,the files from the folder are being uploaded
only ateven or odd positions:File1 - uploaded
100%File2 - failedFile3 - uploaded 100%File4 -
failed.......The error message is following:Error
message = The requested file was not found, HTTPerror
code = 404There are situations when more files fail to
uploadone after another.Is there anyone who
experienced this kind of error, isit corrected in some
later versions?The cURL library I have:
libcurl.2.0.2.dylibHere is the code I use to preparean
Upload:------ curl_easy_setopt(curl, CURLOPT_URL,
[urlUTF8String]); curl_easy_setopt(curl,
CURLOPT_HTTP_VERSION,CURL_HTTP_VERSION_1_1);
curl_easy_setopt(curl, CURLOPT_PUT, TRUE);
curl_easy_setopt(curl, CURLOPT_READDATA, f);
curl_easy_setopt(curl,
CURLOPT_READFUNCTION,read_callback);
curl_easy_setopt(curl,
CURLOPT_INFILESIZE,(int)file_stat.st_size);
curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, self);
curl_easy_setopt(curl,
CURLOPT_PROGRESSFUNCTION,read_progress_callback);
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, FALSE);
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt(curl, CURLOPT_BUFFERSIZE, 8192);
curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1);
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER,errormsg);
                                code = curl_easy_perform(curl);a
Download:--------- curl_easy_setopt(curl,
CURLOPT_URL, [urlUTF8String]);
curl_easy_setopt(curl,
CURLOPT_HTTP_VERSION,CURL_HTTP_VERSION_1_1);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, f);
curl_easy_setopt(curl,
CURLOPT_WRITEFUNCTION,write_callback);
curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, self);
curl_easy_setopt(curl,
CURLOPT_PROGRESSFUNCTION,write_progress_callback);
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, FALSE);
curl_easy_setopt(curl, CURLOPT_BUFFERSIZE, 2 *8192);
curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1);
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER,errormsg);
                        code=curl_easy_perform(curl);
> begin:vcard
> fn:Seshubabu Pasam
> n:Pasam;Seshubabu
> org:RSA Security Inc
> adr:Apt #10B;;745 S Bernardo
> Ave;Sunnyvale;CA;94087;US
> email;internet:seshu_at_pasam.com
> title:Senior Software Engineer
> tel;work:650.295.7543
> tel;home:408.749.1098
> tel;cell:650.307.3076
> x-mozilla-html:FALSE
> url:http://pasam.com
> version:2.1
> end:vcard
>
>

                
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
Received on 2005-02-23

These mail archives are generated by hypermail.

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

File upload with ASP.NET