Questions tagged as 'http-headers'

0
answers

Why even set the headers the page cache is not updated?

I use Laravel 3 in a certain system that we develop here in the company. I need every time the application version changes, all users' caches to be updated. The programmers here already wanted to use that old tactic to put an interr...
asked by 19.10.2015 / 13:22
0
answers

Host Header Attack

Good evening, I would like to know why Acunetix gives a red alert when I scan my site: "Host header attack"  And not only my not, many sites accuse this and I did not find much talking about it on the net and I do not understand much wanted to k...
asked by 17.03.2015 / 00:23
1
answer

Call a wordpress page in PHP page [closed]

I tried using the following command to go to a wordpress page, but it did not work. echo '<meta HTTP-EQUIV='Refresh' CONTENT='0;URL=$buscahttp>'; <script>location.href = 'http://www.xxx/¨'.$buscahttp</script>'); header('Loca...
asked by 12.07.2016 / 20:25
1
answer

Receiving JSON with PHP via $ http.post ()

I want to read a JSON in PHP received from a function $http.post() of AngularJS, I already tried to use json_decode() and set the header (both PHP and Angular) but it did not work. PHP claims to be an undefined index, I tried to u...
asked by 25.05.2014 / 04:20
2
answers

AFTNetworking with Token to download image

I'm testing AFTNetworking to download images from a backend, however I'm having errors downloading images. I have tried several implementations, with this implementation I have not accepted content error. Below is the last implementation I...
asked by 30.01.2015 / 17:34
1
answer

Error Defining Headers-Authorization on the return of data in Axios

I'm trying to set the headers - Authorization after a request via axios, this request returns the token that is generated on the server, in line 7 of the code below assign the token that is returned to insert in the headers in Authorization and...
asked by 25.09.2018 / 18:37
1
answer

What best practice to send authorization via HTTP header [closed]

I'm developing an api rest, I need to pass some data on all requisitions that are basically the required authorization. The data is: Token, unit and an id. What would be the best way to pass this via header. I tried something like this: Author...
asked by 01.02.2018 / 14:13
1
answer

CURLOPT_HEADERFUNCTION - Return of cookies

I have this function that returns Cookies of a particular site, I am learning HTTP HEADERS , But I do not know why this warning if I'm returning my cookies ok , What's wrong with my code?    Notice: Object of class stdClass c...
asked by 07.10.2017 / 23:42
1
answer

How to download a file and open it at the end of the download?

I have an Android application, I'm trying to download a .apk and then open it at the end of the download, follow the code used: /** * baixando arquivo na background thread * */ @Override protected St...
asked by 13.03.2014 / 18:11
1
answer

Angular4: How to retrieve values in Response Headers

I have a WebService that returns a PDF file (byte []). I am returning the file name in the header of the response. In Chrome I can see the 'Response Headers' values and see that all headers are there, including the file name. However, when I...
asked by 26.11.2018 / 19:33