---
name: "ne_get_request_flag"
section: "3"
platform: "linux"
package: "libneon27-dev"
version: "0.34.2-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ne_set_request_flag"
---

# ne\_get\_request\_flag(3)

set and retrieve per-request flags

Part of [ne\_set\_request\_flag(3)](/ne_set_request_flag/3.md).

## NAME

ne\_set\_request\_flag, ne\_get\_request\_flag - set and retrieve per-request flags

## SYNOPSIS

```
#include <ne_request.h>
```

**void ne\_set\_request\_flag(ne\_request \****req***, ne\_request\_flag** *flag***, int** *value***);**

**int ne\_get\_request\_flag(ne\_request \****req***, ne\_request\_flag** *flag***);**

## DESCRIPTION

The **ne\_set\_request\_flag** function enables or disables a per-request flag. Passing a non-zero *value* argument enables the flag, and zero disables it.

The following flags are defined:

**NE\_REQFLAG\_EXPECT100**

enable this flag to use the "Expect: 100-continue" feature of HTTP/1.1, which allows the server to process request headers without reading the entire request body. This saves time and bandwidth if the server gives an authentication challenge (requiring the request to be resent), but has interoperability problems with some older servers.

**NE\_REQFLAG\_IDEMPOTENT**

disable this flag if the request uses a non-idempotent method such as POST

**NE\_REQFLAG\_1XXTIMEOUT** (default on)

disable this flag to disable overall timeout when reading interim (1xx) responses;

## RETURN VALUE

The **ne\_get\_request\_flag** function returns zero if a flag is disabled, less than zero if the flag is not supported, or greater than zero if the flag is enabled.

## SEE ALSO

ne\_request\_create.

## COPYRIGHT

Copyright © 2001-2024 Joe Orton\
