Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
7e09936f
Commit
7e09936f
authored
Sep 24, 2008
by
Nigel McNie
Browse files
[#2989] Fix MNET when the Moodle side is running lighttpd. Patch thanks to Chris Bandy.
parent
0dc059b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/api/xmlrpc/client.php
View file @
7e09936f
...
@@ -63,7 +63,7 @@ class Client {
...
@@ -63,7 +63,7 @@ class Client {
curl_setopt
(
$ch
,
CURLOPT_POST
,
true
);
curl_setopt
(
$ch
,
CURLOPT_POST
,
true
);
curl_setopt
(
$ch
,
CURLOPT_USERAGENT
,
'Mahara'
);
curl_setopt
(
$ch
,
CURLOPT_USERAGENT
,
'Mahara'
);
curl_setopt
(
$ch
,
CURLOPT_POSTFIELDS
,
$this
->
encryptedrequest
);
curl_setopt
(
$ch
,
CURLOPT_POSTFIELDS
,
$this
->
encryptedrequest
);
curl_setopt
(
$ch
,
CURLOPT_HTTPHEADER
,
array
(
"Content-Type: text/xml charset=UTF-8"
));
curl_setopt
(
$ch
,
CURLOPT_HTTPHEADER
,
array
(
"Content-Type: text/xml charset=UTF-8"
,
'Expect: '
));
$timestamp_send
=
time
();
$timestamp_send
=
time
();
$this
->
rawresponse
=
curl_exec
(
$ch
);
$this
->
rawresponse
=
curl_exec
(
$ch
);
...
...
htdocs/api/xmlrpc/lib.php
View file @
7e09936f
...
@@ -426,7 +426,7 @@ function get_public_key($uri, $application=null) {
...
@@ -426,7 +426,7 @@ function get_public_key($uri, $application=null) {
curl_setopt
(
$ch
,
CURLOPT_POST
,
true
);
curl_setopt
(
$ch
,
CURLOPT_POST
,
true
);
curl_setopt
(
$ch
,
CURLOPT_USERAGENT
,
'Moodle'
);
curl_setopt
(
$ch
,
CURLOPT_USERAGENT
,
'Moodle'
);
curl_setopt
(
$ch
,
CURLOPT_POSTFIELDS
,
$rq
);
curl_setopt
(
$ch
,
CURLOPT_POSTFIELDS
,
$rq
);
curl_setopt
(
$ch
,
CURLOPT_HTTPHEADER
,
array
(
"Content-Type: text/xml charset=UTF-8"
));
curl_setopt
(
$ch
,
CURLOPT_HTTPHEADER
,
array
(
"Content-Type: text/xml charset=UTF-8"
,
'Expect: '
));
$raw
=
curl_exec
(
$ch
);
$raw
=
curl_exec
(
$ch
);
if
(
empty
(
$raw
))
{
if
(
empty
(
$raw
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment