New in version 6.1.0: See the new features.

The include file www.h

Definitions for the HTTP method (or verb)

NO_METHOD

REQUEST_METHOD is not specified

METHOD_POST

POST request on the web server

METHOD_GET

GET request on the web server

METHOD_HEAD

HEAD request on the web server

METHOD_TRACE

TRACE request on the web server

METHOD_OPTIONS

OPTIONS request on the web server

METHOD_PUT

PUT request on the web server

METHOD_DELETE

DELETE request on the web server

One of these values is returned by the get_web_method() function to provide the method that caused the nph-srep call.

Can also be used with the http_simple_send() function on the method parameter to specify the http method to use on the request. Used to develop a proper REST service where different http methods have different meanings (see REST service.

Options for http_simple_send function

HTTP_OPTION_REQUEST_IS_FILENAME

The RequestObject is a filename which content will be the request content (as is - raw)

HTTP_OPTION_RESPONSE_IS_FILENAME

The ResponseObject is a filename where the response content will be left (as is - raw)

HTTP_OPTION_REQUEST_FILE_UPLOAD

The RequestObject is a filename that is going to be uploaded to the URL in a multipart/form-data POST. The file will be in a parameter called “File”

Used by the http_simple_send() function options parameter, they can be used together where applicable.


RELATED TOPICS

nph-srep introduction

Standard include files

get_web_method()

http_simple_send()