mirror of
https://github.com/friendica/friendica
synced 2025-05-01 03:44:23 +02:00
Support for fetching non-public content / preparations for forum posts
This commit is contained in:
parent
1395bdc188
commit
8f27e3aeb1
5 changed files with 188 additions and 30 deletions
|
@ -83,6 +83,7 @@ class Network
|
|||
* 'novalidate' => do not validate SSL certs, default is to validate using our CA list
|
||||
* 'nobody' => only return the header
|
||||
* 'cookiejar' => path to cookie jar file
|
||||
* 'header' => header array
|
||||
*
|
||||
* @return CurlResult
|
||||
*/
|
||||
|
@ -136,6 +137,10 @@ class Network
|
|||
);
|
||||
}
|
||||
|
||||
if (!empty($opts['header'])) {
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, $opts['header']);
|
||||
}
|
||||
|
||||
@curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
@curl_setopt($ch, CURLOPT_USERAGENT, $a->getUserAgent());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue