Function fetch_web_data
Get the contents of a URL, irrespective of allow_url_fopen.
- reads the contents of an http or ftp address and returns the page in a string
- will accept up to 3 page redirections (redirectio_level in the function call is private)
- if post_data is supplied, the value and length is posted to the given url as form data
- URL must be supplied in lowercase
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs.php
string |
$url |
The URL |
string |
$post_data = '' |
The data to post to the given URL |
boolean |
$keep_alive = false |
Whether to send keepalive info |
integer |
$redirection_level = 0 |
How many levels of redirection |
string|false
|
The fetched data or false on failure |