Questions tagged as 'http-headers'

2
answers

Monitor PHP script processing

Does anyone know a way to monitor PHP code processing and display on the client? I'm designing a layout converter that takes data files in a certain format and converts them to another format. Basically, I would like to present to the us...
asked by 26.06.2015 / 16:49
0
answers

How to understand the requisitions required in cURL?

Yesterday I opened a question I was forced to erase it, because I could not ask correctly. This question I'll try to explain it in parts, come on. 1 - I monitored Twitter, following a person, I got these protocols: curl "https://api.twitter...
asked by 30.08.2017 / 20:41
1
answer

PHP (setcookie) vs header (header)

I see some frameworks, CMS and the like, write cookies directly in PHP with setcookie and others stock to emit in headers at the end of execution. I would like to know how to create a pattern for creating cookies.    PHP     ...
asked by 30.07.2014 / 09:39
1
answer

Allow to show my wordpress site in an iframe on another site

Hello, I have a site in wordpress that would like to display one of the pages in an iframe on another site, is it possible to do this? At this time when doing the iframe on another page I get the following error: "Refused to display ' link '...
asked by 03.10.2016 / 11:24
1
answer

Android and HTTP request field X-auth-token

I'm trying to send a token through an Android application in the 'X-auth-token' field of the header. This request is sent to a PHP server, in which I use CodeIgniter. Android HttpClient httpClient = new DefaultHttpClient(); HttpPost...
asked by 19.05.2015 / 21:47
0
answers

What is the "P3P" heading used for?

I recently found a header with a name of P3P , I had never seen this before, and I do not know what the real impact is on using that header. I found some information, like this huge documentation , Some basic information and Faceboo...
asked by 11.05.2018 / 00:35
2
answers

Why is X-Powered-by answering headers important? How to remove?

Why is it important to remove% with% of response headers? Does this prevent some kind of attack, or do you prevent "inside information" from the attacker? Example: X-Powered-By: PHP/5.5.9-1ubuntu4.11 And what are the possible ways in...
asked by 05.08.2015 / 17:31
2
answers

Why does the User-Agent header always return "Mozilla /5.0" regardless of browser?

I know that in PHP we can access a header called User-Agent and thus discover information about the operating system and browser, used by the client. The only thing I do not understand is that "Mozilla /5.0" always appears (even...
asked by 09.09.2015 / 13:57
1
answer

CORS error when executing request using HttpClient in the Angular

I'm trying to perform an Http request using "HttpClient" from Angular 4, and I get the following error:    Request header field Access-Control-Allow-Origin is not allowed by Access-Control-Allow-Headers in preflight response. According to...
asked by 08.02.2018 / 05:11
1
answer

In an Ajax XHR request, in HTTP_ACCEPT what meaning of q = 0.01?

I have communication via Ajax (xhr) , and in my HEADER the value of HTTP_ACCEPT is application/json, text/javascript, */*; q=0.01 . I understand all the previous values, I would like to find something that explains the q = 0.01...
asked by 05.12.2017 / 15:17