Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.5 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

local import 400 error

Hi, I update

% diff -u require/function_files.php~ require/function_files.php
--- require/function_files.php~    2017-10-19 13:15:04.941413000 +0900
+++ require/function_files.php    2017-10-23 15:35:36.897576000 +0900
@@ -181,7 +181,7 @@
 
     $contentlength = strlen($reqbody);
     $reqheader = "POST $uri HTTP/1.1\r\n" .
-            "Host: $host\n" . "User-Agent: OCS_local_" . GUI_VER . "\r\n" .
+            "Host: $host\r\n" . "User-Agent: OCS_local_" . GUI_VER . "\r\n" .
             "Content-type: application/x-compress\r\n" .
             "Content-Length: $contentlength\r\n\r\n" .
             "$reqbody\r\n";
related to an answer for: Error HTTP/1.1 400 Bad Request
asked in OCS Inventory NG server for Unix by (180 points)

1 Answer

0 votes
Hi

Post a PR for your update.

Regards

Frank
answered by (63.8k points)
 
Powered by Question2Answer
...