Fix invalid \r\n\r\n in https request introduced in 2005071601.

This commit is contained in:
ethem
2005-12-05 09:40:02 +00:00
parent 5ad193da55
commit 2d49ed8505
+3 -4
View File
@@ -155,12 +155,11 @@ class enrolment_plugin extends enrolment_base {
//send the server request
fputs($fp,
"POST " . AN_PATH . " HTTP/1.0\r\n" .
"Host: " . AN_HOST . "\r\n" .
$anrefererheader .
"Host: " . AN_HOST . "\r\n" . $anrefererheader .
"Content-type: application/x-www-form-urlencoded\r\n" .
"Connection: close\r\n" .
"Content-length: " . strlen($poststring) . "\r\n" .
$poststring . "\r\n\r\n"
"Content-length: " . strlen($poststring) . "\r\n\r\n" .
$poststring . "\r\n"
);
//Get the response header from the server