Questions tagged [HTTP headers] (161)

2
answers

As the generated header data?

Trying to figure out where and how the data generated headers. Usually the data can be pulled from the html or are they generated queries. In this situation do not understand the origin: - x-mag09e7sc-a: - x-mag09e7sc-b: - x-mag09e7sc-c: - x-mag09e7sc-d: - x-mag09e7sc-f: - x-mag09e7sc-z: Can't find this data in html, and...
Ubaldo asked April 19th 20 at 12:25
2
answers

What HTTP code to give to an editable page?

Is there a website in PHP. The moderator can hide some of the pages on editing time (from several seconds to several days). Which http status code to return to these pages, so they are not eliminated from the search index? Now given a 404 (page not found), but it is not correct. I think it is necessary either 302, 303 (temp...
Itzel_Becker asked April 16th 20 at 11:21
1
answer

How to decode the HTTP response?

Hi all. Trying raskurochit app to make autoregen and came across the following problem. Weak in math. part, so please do not throw Slippers if something somewhere will be wrong ;) The problem is as follows: make POST request to register (Using the nodeJS module request), the query runs everything perfectly (draw this con...
Aurore.Goyette asked April 8th 20 at 18:30
1
answer

How to fetch and configure the server to receive json from another site?

Trying to write a parser of sites that it is then kept somewhere in the data. The problem came with saving. The website where the php handler, parsed and stored properly. But if you run the script from the console on another website, the file is created but data not get. A lot of googled, but could not understand. What are ...
Gardner.Bernier asked April 7th 20 at 09:46
2
answers

What are the benefits of base64 encoding, for example Authorization: Basic xyz?

When encode binary data to a text environment, such as jpeg for embedding in a url in html, it's understandable. It is unclear why the text data is encoded in http. For example, what's the benefit of thisAuthorization: Basic YWxhZGRpbjpvcGVuc2VzYW1l before thatAuthorization: Basic aladdin:opensesame ? The same question for ...
Isabella_Hermiston88 asked April 4th 20 at 13:45
1
answer

Why nekorektno Yandex works.Metric policy Content Security Policy (CSP)?

Installed all according to the official guide from Yandex.Metrics https://yandex.ru/support/metrica/code/install-cou... . Try, when someone clicks on the pages in the console crashes like this: Refused to load the image 'https://mc.yandex.ru/clmap/57115789?page-url=........' because it violates the following Content Securit...
reina_Cummings asked April 4th 20 at 13:13
2
answers

How to write a Content-type in HTTP response header Go-servers?

Help to record the Content-type in HTTP response header Go server, pliz! Have done so: var contType = "text/css; charset=UTF-8" w.Header().Add("Content-Type", contType) but it seems it doesn't work... browsers download their files right through three times (mostly take CSS over JS). General objective: to be send to my Go se...
Kayleigh.McClure9 asked April 4th 20 at 13:00
1
answer

How to operate the http Accept-Encoding header — compression content?

Do I understand correctly that if you write, the content will be transferred to the archives 3 Accept-Encoding: gzip, compress, br? This example is taken from Mozilla website: https://developer.mozilla.org/uk/docs/Web/HTTP/%D0...
Wyatt74 asked April 4th 20 at 12:31
5
answers

How to refresh the page and then do a redirect?

Should: if the button is pressed new_invoice, first refresh the page, and then do a redirect. That just did not work refresh, even though it is the first...if (isset($_POST['new_invoice']) ) { header( 'Refresh: 0'); header( 'Location: invoice.php?id=111' ); } What am I doing wrong?
sean.Hop asked April 4th 20 at 12:11
2
answers

The meaning of the character encoding in the HTTP header for css/js?

Does it make sense to specify the character encoding in the HTTP header when the transfer-return server CSS/JS files? After all, everything is in Latin. Or better still to specify?
Augustus_Koss asked April 4th 20 at 01:42