Questions tagged [http-protocols]

The Hypertext Transfer Protocol (HTTP) is an application protocol for distributed, collaborative, hypermedia information systems. It is a protocol to transfer or exchange hyper text

The Hypertext Transfer Protocol is an application-level protocol for distributed, collaborative, hypermedia information systems. It is a stateless protocol that can be used for name servers and distributed object management systems, through extension of its request methods, error codes and headers.

HTTP concepts include (as the Hypertext part of the name implies) the idea that files can contain references to other files whose selection will elicit additional transfer requests. Any Web server machine contains, in addition to the Web page files it can serve, an HTTP daemon, a program that is designed to wait for HTTP requests and handle them when they arrive. For example, when you enter a URL

enter image description here

in your browser, this actually sends an HTTP command to the Web server directing it to fetch and transmit the requested Web page.

HTTP has been in use since 1990.

There are three basic features that make HTTP a simple but powerful protocol:

  • HTTP is connectionless: The HTTP client, i.e., a browser initiates an HTTP request and after a request is made, the client disconnects from the server and waits for a response. The server processes the request and re-establishes the connection with the client to send a response back.

  • HTTP is media independent: It means, any type of data can be sent by HTTP as long as both the client and the server know how to handle the data content. It is required for the client as well as the server to specify the content type using appropriate MIME-type.

  • HTTP is stateless: As mentioned above, HTTP is connectionless and it is a direct result of HTTP being a stateless protocol. The server and client are aware of each other only during a current request. Afterwards, both of them forget about each other. Due to this nature of the protocol, neither the client nor the browser can retain information between different requests across the web pages.

More reading : https://www.w3.org/Protocols/rfc2616/rfc2616.html
Image Reference : http://code.tutsplus.com

54 questions
1
vote
1 answer

Use of wrong HTTP verb while creating elasticsearch index

To create an index in the elasticsearch, we need to use the PUT verb, for example, the following command: curl -X PUT "localhost:9200/test_index" -d '{"settings":{"number_of_shards":2, "number_of_replicas":2}}' --header 'Content-Type:…
Deepak Tatyaji Ahire
  • 4,883
  • 2
  • 13
  • 35
1
vote
1 answer

Git: Confirm given commit is existent via HTTP(s) protocol

We use the git http(s) protocol (https://www.git-scm.com/docs/http-protocol; smart service) to get all branches from a repository on e.g. GitHub or BitBucket like this: GET https://github.com/larshp/abapgit.git/info/refs?service=git-upload-pack The…
Nighty42
  • 420
  • 1
  • 6
  • 20
1
vote
1 answer

Watching http in wireshark,what's the relation between reassembled TCP vs. Hypertext Transfer Protocol + Line-based text data?

Though after verifying it I found reassembled TCP segments are the same as Hypertext Transfer Protocol + Line-based text data,but does wireshark count them twice?
mysql_go
  • 2,269
  • 4
  • 20
  • 20
1
vote
1 answer

Four space characters in the beginning of a random name HTTP header

I've discovered a domain name (web site and API) which adds a header like this to each HTTP response: XTVOpalL: Gtm; path=/; Max-Age=900 The header name looks random. Here are few other examples: XRQOJalT: LtZ; path=/; Max-Age=900 …
Vasyl Boroviak
  • 5,959
  • 5
  • 51
  • 70
1
vote
1 answer

can we change bind adress of http protocol of influx db

I'm trying to change [http] protocol's bind address,using which im able to send out the results but im not able to access iflux CLI. I tried to change the bind address of [http] from 8086 to other numbers.But i'm not able to access influx CLI…
shey
  • 344
  • 2
  • 10
  • 29
1
vote
1 answer

How to redirect QWebEngineUrlRequestInfo to local files?

I have a simple Qt application that loads a page in a QWebEngineView. I would like to redirect all http requests with the word "static" in the url to local files. Using WebUrlRequestInterceptor I reimplemented the interceptRequest method. Here is…
madasionka
  • 812
  • 2
  • 10
  • 29
1
vote
0 answers

Does a description file exist for coap services?

Is there an equivalent of WADL or WSDL for COAP? APIs for Rest services like Restlet have functions like addQueryParameter for Request which can be used to make the request JSON after knowing the query or path parameters through the WADL. But COAP…
user3740387
  • 337
  • 1
  • 3
  • 13
1
vote
1 answer

Android Volley - make POST with body and url parameters - getParams and getBody at the same time

I have simple question which method to call on POST and which method to call on GET. This is my simple Class: public class CustomStringRequest extends Request { private final Map headers; private final…
5er
  • 2,506
  • 7
  • 32
  • 49
1
vote
0 answers

Test Supported HTTP Methods

I'm trying to test supported methods in HTTP, essentially I'm creating httpwebrequest with verb to see if It's supported, how can I achieve this, how can I achieve that? Below is my code attempt. My code is so far as the following public enum…
Rami Sakr
  • 556
  • 1
  • 6
  • 14
1
vote
2 answers

How to properly decode HTTP traffic

I'm looking at HTTP traffic, and seeing a POST request that is "application/x-www-form-urlencoded" with strange characters in it: t=%d8%94%b2%bc+%cb%ae%c9%ab Various URL decodes that I tried running on this complain that it's not UTF-8 encoded. I…
moomima
  • 1,200
  • 9
  • 12
1
vote
0 answers

PHP-CGI pipe info

When I get in my server a HTTP request I get somthing like this: GET /my/page/home.php?arg1=1&arg2=2 HTTP/1.1 Host: mydomainname.com Connection: keep-alive Cache-Control: max-age=0 Accept:…
1
vote
2 answers

YQL : Getting unsupported http protocol error

When i'm trying to invoke the YQL via cURL i'm getting the following error. HTTP Version Not Supported Description: The web server "engine1.yql.vip.bf1.yahoo.com" is using an unsupported version of the HTTP protocol. Following is the code used …
Anil
  • 89
  • 4
1
vote
0 answers

Setting the SERVER_PROTOCOL to HTTP/1.1 in centOS

I want to set the http SERVER_PROTOCOL as HTTP/1.1 in my CentOS system. The system is currently configured with Apache/2.2.15 and PHP/5.4.10. But the PHP info file in my server shows as: SERVER_PROTOCOL HTTP/1.0 How to change it…
1
vote
1 answer

Netty http pipelining approach validation

I have implemented a channel handler for handling http pipelining. My code is at github: https://github.com/huntc/netty-http-pipelining My question is around the approach that I have taken and whether it is a reasonable one in the context of Netty's…
Christopher Hunt
  • 2,071
  • 1
  • 16
  • 20
1
vote
2 answers

WebDav Protocol VS HTTP Protocol

In what way WebDAV protocol is better than HTTP protocol in terms of upload. Is there comparison between Socket Upload protocol and WebDav Upload protocol?
Abdallah Ghrb
  • 183
  • 3
  • 13