HttpUtil
Static functions. Part of LibHTTP.
Properties
- int LOGDATA
- int LOGERR
- int LOGINFO
- int LOGWARN
- array<string> MonthNames
Functions
- array<string> Base64Decode( array<string> indata )
- Decode a base64 encoded string
- array<string> Base64Encode( array<string> indata , out array<string> B64Lookup )
- base64 encode an input array
- Base64EncodeLookupTable( out array<string> LookupTable )
- Generated the base 64 encode lookup table
- string basename( string filename )
- get the base filename
- string dirname( string filename )
- get the dirname of a filename, with traling slash
- Logf( name Comp , coerce string message , optional int level , optional coerce string Param1 , optional coerce string Param2 )
- Write a log entry
- string RawUrlEncode( string instring )
- Encode special characters, you should not use this function, it's slow and not
secure, so try to avoid it.
";", "/", "?", ":", "@", "&", "=", "+", ",", "$" and " " - ReplaceChar( out string instring , string from , string to )
- replace part of a string
- int stringToTimestamp( string datestring , optional int TZoffset )
- Parse a string to a timestamp
The date string is formatted as: Wdy, DD-Mon-YYYY HH:MM:SS GMT
TZoffset is the local offset to GMT - int timestamp( int year , int mon , int day , int hour , int min , int sec )
- Create a UNIX timestamp
- string Trim( coerce string S )
- Trim leading and trailing spaces
- int TZtoOffset( string TZ )
- Converts a timezone to an offset