Questions tagged as 'http'

2
answers

How to put + of a domain in this code, different references

Hello, I have a code that works as a reference. In other words, if the visit comes from domain01.com, it displays: WITH REFERENCE if it does not display: NO REFERENCE Code: <?php if (isset($_SERVER['HTTP_REFERER']) &&...
asked by 16.06.2018 / 22:30
1
answer

Error Notice: Trying to get property of non-object when getting the title of the page

I have a code that should take the title of the page example "Facebook - enter or sign up" but that is giving error in this line $title = $dom->getElementsByTagName('title')->item('0')->nodeValue; this is the code: function websit...
asked by 23.03.2016 / 16:36
1
answer

What is the best way to make multiple requests to an API?

I came to put this question one more time thinking that it would be beneficial for the community to have a canonical way of making multiple http requests to a particular API. More specifically this question motivated me to put my question....
asked by 19.05.2016 / 11:09
1
answer

When to use the http patch method? [duplicate]

I did some research on the PATCH method, and I saw that it makes partial modifications, but I did not really understand when to use it and what its difference to PUT . I'm looking for a practical example of how / when and why to use the...
asked by 25.04.2016 / 22:15
2
answers

Web server on Go apparently is not creating new requests

I'm now starting to develop in Go, and I'm currently studying Go for Web development, so through examples I've started a simple server in Go: package main import ( "fmt" "log" "net/http" "time" "github.com/gorilla/mux" ) var Nome...
asked by 14.06.2017 / 20:13
1
answer

HTTP and HTTPS redirection

I have a site in link and I've added an SSL certificate. I need a script via htaccess to redirect the whole site to link (301 redirect), however a single site specific page will need to be accessed via link Example: link All s...
asked by 13.06.2016 / 17:01
1
answer

How do I know how much of the content was downloaded in an Ajax request?

I need to make that little animation, like on Youtube, of the progress bar that appears at the top. How do I know how much of the content has been downloaded, to have a basis for the progress bar? I did not want to do a "static" animation,...
asked by 22.03.2017 / 10:34
2
answers

Problems with $ http and ng-repeat angularjs beginner $$ hashKey

Hello, I'm a beginner in Angular and I'm finding it very nice, my problem is this: I have a ng-repeat that works fine when I get the data source of a javascript variable like this: var alertsq = [ { "alert":"mediun", "nt":"28",...
asked by 10.12.2014 / 00:26
1
answer

Error in Chrome when decoding accents posted via HTTP POST

I have a form that does an HTTP POST request to update the DB. During the request I noticed that the following message appeared for a field filled with accent in the Chrome Dev Tool. For example, the evaluation is displayed as avalia%E7%E3o...
asked by 19.09.2014 / 16:04
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