libURLSetExpect100

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
libURLSetExpect100 <limit>
Associationsinternet library
Summary

Allows for a '100 Continue' header response to be received from the server

Introduced2.5
OSmac, windows, linux
Platformsdesktop, server
Parameters
NameTypeDescription
limit

A number of bytes.

RelatedKeyword: 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
Securitynetwork
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 custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "Internet" script library is selected.