Allows for a '100 Continue' header response to be received from the server
# Metadata
Platforms: desktop, server OS: mac, windows, linux Introduced: 2.5 Security: network
# Syntax
libURLSetExpect100 limit
# Params
- limit : A number of bytes.
# Description
When called, subsequent POST requests will add an "Expect: 100-continue" field to the http headers when the data to be posted excedes the limit. The data won't be written to the socket until a 100 Continue response is received from the server.
This can be useful when posting large amounts of data and where there is a risk of the POST failing (because of failed authentication, or whatever). For example, if authentication is required, the data won't be written until after the authentication has cleared.
>*Important:* The libURLSetExpect100 command is part of the > Internet library. To ensure that the command works in a > standalone application, you must include this > LiveCode custom library when you create your > standalone application. In the Inclusions pane of the > Standalone Application Settings window, make sure the "Internet" > script library is selected.
# Tags
# See
- **keyword:** URL - **message:** startup, openBackground, preOpenStack, openStack, preOpenCard - **command:** post - **function:** libURLMultipartFormData, libURLFormData - **glossary:** main stack, handler, Standalone Application Settings, message, group, standalone application, keyword, command, application, LiveCode custom library - **library:** Internet library, library