Questions tagged as 'http'

3
answers

Implement HTTP POST and GET requests on Android

How do I send information via get in an url on Android, passing parameters? And how to return the data as JSON from my PHP?     
asked by 08.12.2014 / 20:20
1
answer

What should the server return in an OPTIONS request?

Before sending any requests to the server, browsers automatically send a request of type OPTIONS to know some information about the server What information does the server need to send? Only CORS headers? Should this information be...
asked by 26.10.2018 / 13:43
1
answer

The appropriate type to serve JavaScript is "text / javascript" or "application / x-javascript" or "application / javascript"?

When analyzing the source code of several pages, Javascript headers vary with respect to the mime (English) , but the question remains about which one we should actually use: How do we use HTML to indicate a Javascript block < sup> (En...
asked by 03.12.2014 / 14:45
1
answer

Why do CDN web addresses do not specify protocol?

Usually web addresses start with http:// or https:// , but CDN addresses such as jQuery and Bootstrap start with // . Example: <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.cs...
asked by 15.04.2014 / 15:13
5
answers

What libraries to develop a RESTFul API in JAVA?

I am a beginner in java and would like to create a RESTFUL API but I do not know which library to use or how to use it. Can anyone point me to good tutorials or some libraries to study. I would like to use JSON.     
asked by 13.12.2013 / 12:34
2
answers

Redirect: Location vs Refresh

When you use Location and Refresh to redirect. header( "Location: www.dominio.com" , TRUE , 302 ) header( "Refresh:5; url=www.dominio.com" , TRUE , 302 ) Both options produce the same result: redirection . The difference is tha...
asked by 09.09.2014 / 04:13
1
answer

What is the difference between the PUT method and PATCH? [duplicate]

Some teach that to upgrade uses PUT and others teach using PATCH . So, what's the difference between the PUT method and PATCH? When should I use one and the other?     
asked by 04.07.2017 / 18:18
1
answer

Are all HTTP methods / verbs accepted by APACHE and NGINX?

In a recent lecture, one of the speakers commented that the only methods that the APACHE and the NGINX accept / support are the methods / verbs GET and POST . The speaker further clarifies that when other methods such as PUT...
asked by 04.07.2017 / 20:41
3
answers

What is payload?

I have always seen in some frameworks that work with REST or with sending data in JSON format in a request the use of the expression payload . What does this name mean in HTTP requests? What specifically is a payload ? Is a body of...
asked by 07.03.2017 / 17:48
2
answers

What is, and how does it work, an ETag

I've been making socket requests for my Apache server in order to create a Framework prototype, and for each different file that was accessed, it returned an ETag in the header . What is an ETag serving? How can I find the ETag of a f...
asked by 28.06.2016 / 02:54