cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: File Exists

From: Alex Salsinha <manobro87_at_hotmail.com>
Date: Fri, 20 Jun 2003 23:38:36 +0100

Thks RBramante_at_on.com for you quick awser.

Sorry to ask this, but I tried to do a program like you said, but the
CURLINFO_HTTP_CODE itīs always 43.
I think I program it wrong. Here itīs the final Code.

#include <stdio.h>
#include <curl/curl.h>
#pragma comment(lib, "libcurl.lib")

int main(void)
{
  CURL *curl;
  CURLcode res, infot;

  curl = curl_easy_init();
  if(curl) {
    curl_easy_setopt(curl, CURLOPT_URL, "http://www.server.com/file.htm");

    res = curl_easy_perform(curl);

    infot = curl_easy_getinfo(curl, CURLINFO_HTTP_CODE);
    curl_easy_cleanup(curl);
  }
  return 0;
}

The infot itīs always 43.
Thks again.

_________________________________________________________________
MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com

-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
Received on 2003-06-21