Cracking Functions

scop.http.crackrequest(headers)

Returns the main components of the headers of a HTTP request as a table
returns: table
data - Request/POST data (if any)
method' - Request method (GET, POST, HEAD, etc...)
path - URL path

scop.url.crack(url)

Returns the main components of an URL as a table
returns: table
fileext - filename extension (eg: .lp)
filename - filename (eg: index.lp)
host - host name (eg: www.lua.org)
path - location (eg: /demo/index.lp)
port - port number (eg: 80)
proto - protocol (eg: https)