libURLSetLogField

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
libURLSetLogField <longFieldDescriptor>
libURLSetLogField "none"
Associationsinternet library
Summary

Specifies a field for logging information about uploads and downloads.

Introduced1.1.1
OSmac, windows, linux, web
Platformsdesktop, server
Parameters
NameTypeDescription
longFieldDescriptor

Any expression that evaluates to a field reference.

Example
libURLSetLogField "field 1"
libURLSetLogField(the cLogField of me)
RelatedProperty: 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
Securitynetwork
Description

Use the libURLSetLogField command to debug file transfers.

Important: The libURLSetLogField command does not accept direct field references. 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's 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 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.

Tagsnetworking