libURLSetLogField

Specifies a field for logging information about uploads and downloads.

# Metadata

Platforms: desktop, server OS: mac, windows, linux, web Introduced: 1.1.1 Security: network

# Syntax

libURLSetLogField longFieldDescriptor

# Params

- longFieldDescriptor : Any expression that evaluates to a field reference.

# Examples

libURLSetLogField "field 1"

libURLSetLogField(the cLogField of me)

# Description

Use the libURLSetLogField command to debug file transfers.

>*Important:* The libURLSetLogField command does not accept direct > object reference. For example, the following > statement causes an error message:

libURLSetLogField field "Log" -- CAN'T USE THIS FORM

Instead, use a form that evaluates to a field reference, like this:

libURLSetLogField the name of field "Log" -- use this form instead libURLSetLogField ("field" && quote & "Log" & quote) -- or this

During ftp and http transfers, LiveCode logs the data sent from the server. If a log field has been set, this data is placed after the log field contents.

To stop logging, use the following statement:

libURLSetLogField "none"

>*Important:* The libURLSetLogField 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

- **property:** ID, name - **glossary:** application, standalone application, debug, object reference, command, main stack, group, Standalone Application Settings, server, HTTP, message, statement, handler, LiveCode custom library - **message:** startup, openBackground, preOpenStack, openStack - **library:** Internet library, library - **keyword:** long - **object:** field - **control structure:** function - **function:** libURLErrorData - **command:** get, post