Question: |
Hello! Why not handle the header \"AUTHORIZATION\" which should be in the apache_request_headers() ??? php version is 5.4 |
Answer: |
Hello why did you decide that is not processed? describe the problem in more detail. |
Question: |
on the file api_load_foto.php the application sends information in the headers, on the side of the programmer checked all the work (hosting headers have been received), this hosting some of the titles comes this: (with their own extra info from me){\"response\":[\"Content-Length: 11112 \\n\"\"Content-Type: multipart\\/form-data; boundary=03b6a3e2-13dc-4ec3-a8a6-227c9e783aa6 \\n\",\"Accept-Encoding: gzip \\n\"\"Connection: close \\n\"\"Host: work.thelocus.ru \\n\"\"User-Agent: okhttp\\/3.4.2 \\n\",\"X-Forwarded-For: 85.140.1.234 \\n\ |
Answer: |
the server includes nginx |
Question: |
the file is located here http://work.thelocus.ru/api_load_foto.php |
Question: |
and that I need to change , just nginx ? |
Answer: |
the server includes nginx ? your script is designed to work in nginx ? |
Question: |
I have not changed anything here on the hosting, everything is default |
Answer: |
describe the issue more please, what is concretion, where can I see her, what does a AUTHORIZATION on your website? where is it used? what are the server requirements from your script? |
Question: |
in the authorization application sends the necessary data to identify the photo in the header contains the line which I then party, so this header is not present, and it turns out there is nothing to parse |
Question: |
that interested me and why the title does not come |
Answer: |
how do you send the header? |
Answer: |
please Specify what kind of header you are sending and how you parsite. |
Question: |
the title refers the app on android , Prager writes standard refers |
Question: |
from file:$headers = apache_request_headers(); $i=0;foreach ($headers as $header => $value) { $a[$i] = \"$header: $value \\n\"; $i++;}echo json_encode(array(\"response\"=>$a, `server` =>$_SERVER[`HTTP_X_AUTHORIZATION`])); |
Question: |
this file takes the application from the old |
Question: |
header \"Authorization\" is appended to the generated request, via ok_http for java |
Question: |
it is already in the application and is sent as standard as other header data |
Answer: |
vagsh the script works in nginx? |
Question: |
no nginx there |
Question: |
try to make a sample file to send the authorization header and try to get it, maybe the settings are not made in this direction on the server? |
Question: |
I don`t separate same server I use, and just part of your hosting) I can`t configure) |
Answer: |
any configuration on the server does not. all the values of the standard. |
Question: |
so what to do then? |
Answer: |
to describe more the problem because we do not really understand its essence. |
Question: |
the problem is that the headers are not processed in the query |
Answer: |
that nginx can`t see in the description http://php.net/manual/en/function.apache-request-headers.php where your script was railtel , there is nginx ? |
Question: |
and there is no nginx, you simply filled the file sent from the application photo with the headers and it all came and loaded |
Answer: |
we can create you a account on the server with ispmanager |
Question: |
it will cost additional funds? |
Question: |
the change from the control panel that actually will change? |
Answer: |
the Function header works: http://work.thelocus.ru/testheaders/apache_request_headers.php the Answer is. How then do you spend sending and parsing? |
Answer: |
http://work.thelocus.ru/testheaders/apache_request_headers.php here is the answer |
Question: |
I mean this function did not write, I write about the fact that the response does NOT CONTAIN [`Authorization`] ! |
Question: |
that`s what the answer comes from the function:[\"Content-Length: 11112\",\"Content-Type: multipart\\/form-data; boundary=03b6a3e2-13dc-4ec3-a8a6-227c9e783aa6\",\"Accept-Encoding: gzip\",\"Connection: close\",\"Host: work.thelocus.ru\",\"User-Agent: okhttp\\/3.4.2\",\"X-Forwarded-For: 85.140.1.234\ |
Answer: |
please Specify what should be the answer. |
Question: |
Array([0] => Host: b31243ty.bget.ru [1] => X-Server-Addr: 87.236.19.52 [2] => X-Forwarded-Proto: http [3] => X-Real-IP: 85.140.1.234 [4] => Content-Length: 10830 [5] => Authorization: 163/55.7692567/49.220835/7 (950) 312-43-60|g?!de1257f5700ff4751f4a7876710de0c50a3773b1bhz@! [6] => Content-Type: multipart/form-data; boundary=e09f0f7d-85c2-496a-8f53-f31b7b0957d8 [7] => Accept-Encoding: gzip [8] => User-Agent: okhttp/3.4.2 [9] => GEOIP_ADDR: 85.140.1.234 [10] => GEOIP_CONTINENT_CODE: EU [11] => GEOIP_COUNTRY_CODE: EN [12] => GEOIP_COUNTRY_NAME: Russian Federation [13] => GEOIP_DMA_CODE: 0 [14] => GEOIP_METRO_CODE: 0 [15] => GEOIP_AREA_CODE: 0 [16] => GEOIP_LATITUDE: 55.738602 [17] => GEOIP_LONGITUDE: 37.606800 ) |
Answer: |
please Wait, your issue is being dealt with. |
Question: |
here is the headlines from the person on the other hosting , which could have obtained by unfolding the response from the method header apacha |
Answer: |
we can only offer to try on a different server because of the settings on the current server cannot be made. this is a server with shared hosting where you krme hundreds of sites and dozens of kleintov, change to the General configuration for one script that it no longer uses is unacceptable. can You predloziti vps server where you can perform all the settings personally. |