---
name: "http_perror"
section: "3"
platform: "linux"
package: "libhttpfetcher-dev"
version: "1.0.1-3"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/http_perror"
---

# http\_perror(3)

Print an error message.

## NAME

**http\_perror** - Print an error message.

## SYNOPSIS

**#include \<http\_fetcher.h\>**\

**void http\_perror(const char \****string***);**\

## DESCRIPTION

**Prints an informative error message to standard error regarding the most recent error encountered within an HTTP Fetcher call.**

**Any HTTP Fetcher function that returns -1 can be**\
 **investigated by using** *http\_perror*.

The argument *string* is printed first, then a colon and a blank, then a message followed by a newline.  To be of most use, the argument string should include the name of the function that incurred the error.

## RETURN VALUE

Returns no value.

## SEE ALSO

 [**http\_strerror**(3)](/http_strerror/3.md)
