GET_INFO
Get information about the contents of the current file, either before or after the SEND operation.
GET_INFO(
Option,
StringInfo)
Parameters
Parameter |
Type |
Direction |
Description |
---|---|---|---|
Option |
String |
IN |
Information you want to have returned;
one of |
StringInfo |
String |
OUT |
Returned information if
|
Options
Option |
Description |
---|---|
|
Get the length of the body in $status |
|
Get encoded contents of the HTTP request /response using the specified algorithm and key (if required.) The supported algorithms are MD*, SHA* and HMAC_*. The digest is returned in HEX encoding, which is always an ASCII string. It will go, for example, first to SHA1, then it will be returned with encoding HEX. To use another encoding, use $decode and $encode. The maximum length of the Key is 256 bytes. |
|
Get the range of bytes used in a
For upload (after LOAD_FILE_CONTENTS), the range will reflect the currently set contents. For download (after DUMP_FILE_CONTENTS), the range will reflect the expected contents, based on what was already received and the chunk size. |
|
Get the size of the TCP send buffer used to upload a file or file chunk with LOAD_FILE_CONTENTS. If the returned value is
|
|
Get the size of the TCP received buffer used to download a file or file chunk with DUMP_FILE_CONTENTS. If the returned value is
|
Return Values
Numeric information is returned through $status and string information is returned through the StringInfo parameter.
Value |
Meaning |
---|---|
|
The default buffer size for the local TCP
stack was used. The |
> |
Length of the file contents. |
|
No file for |
|
Invalid option in the OptionList |
|
Invalid value for option in the OptionList |
|
A problem occurred with encoding a digest |
|
Internal error occurred |
Use
May be called after LOAD_FILE_CONTENTS or DUMP_FILE_CONTENTS, and before or after SEND, depending on the information required.
Description
The GET_INFO operation is most useful when the request body represents the current file, as there is no other way of getting information about the file length or range.