Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feeds
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
feeds
Commits
25192ffd
Commit
25192ffd
authored
14 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
Keep http_request library independent from Feeds.
parent
30fa3f7d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.txt
+4
-0
4 additions, 0 deletions
README.txt
libraries/http_request.inc
+1
-1
1 addition, 1 deletion
libraries/http_request.inc
with
5 additions
and
1 deletion
README.txt
+
4
−
0
View file @
25192ffd
...
...
@@ -208,6 +208,10 @@ Default: 50
The number of nodes feed node processor creates or deletes in one
page load.
Name: http_request_timeout
Default: 15
Description: Timeout in seconds to wait for an HTTP get request to finish.
Glossary
========
...
...
This diff is collapsed.
Click to expand it.
libraries/http_request.inc
+
1
−
1
View file @
25192ffd
...
...
@@ -145,7 +145,7 @@ function http_request_get($url, $username = NULL, $password = NULL, $accept_inva
curl_setopt
(
$download
,
CURLOPT_HEADER
,
TRUE
);
curl_setopt
(
$download
,
CURLOPT_RETURNTRANSFER
,
TRUE
);
curl_setopt
(
$download
,
CURLOPT_ENCODING
,
''
);
curl_setopt
(
$download
,
CURLOPT_TIMEOUT
,
variable_get
(
'
feeds_worker
_time'
,
15
));
curl_setopt
(
$download
,
CURLOPT_TIMEOUT
,
variable_get
(
'
http_request
_time
out
'
,
15
));
if
(
$accept_invalid_cert
)
{
curl_setopt
(
$download
,
CURLOPT_SSL_VERIFYPEER
,
0
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment