Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

17 Commits

Repository files navigation

Parser

A short recording of page retrieval:

$arHtml = Parser::getPage([
"url" => "http://httpbin.org/ip"
]);

If successful, returns array with page data; otherwise, false.

Extra options:

"useragent" => "Mozilla/5.0",
"timeout" => 5,
"connecttimeout" => 5,
"head" => false,
"cookie" => [
"file" => "cookie.txt",
"session" => false
]
"proxy" => [
"ip" => "127.0.0.1",
"port" => 80,
"type" => "CURLPROXY_HTTP"
],
"headers" => [
"Content-type: text/plain",
"Content-length: 100"
],
"post" => "'param1=val1&param2=val2"

All additional parameters are optional.

About

Content parsing class.

Topics

Resources

Stars

8 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages