Skip to main content

⚙ HOW TO CRACK ANY ANDROID APP,GAME OR ANYTHING BEEN IS A THIRD PARTY APP

HTTP Headers for Dummies

Whether you're a programmer or not, you have seen it everywhere on the web. At this moment your browsers address bar shows something that starts with "https://". Even your first Hello World script sent HTTP headers without you realizing it. In this article we are going to learn about the basics of HTTP headers and how we can use them in our web applications.
HTTP stands for "Hypertext Transfer Protocol". The entire World Wide Web uses this protocol. It was established in the early 1990's. Almost everything you see in your browser is transmitted to your computer over HTTP. For example, when you opened this article page, your browser probably have sent over 40 HTTP requests and received HTTP responses for each.
HTTP headers are the core part of these HTTP requests and responses, and they carry information about the client browser, the requested page, the server and more



When you type a url in your address bar, your browser sends an HTTP request and it may look like this:
01
02
03
04
05
06
07
08
09
10
11
12
GET /tutorials/other/top-20-mysql-best-practices/ HTTP/1.1
Host: net.tutsplus.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: PHPSESSID=r2t5uvjq435r4q7ib3vtdjq120
Pragma: no-cache
Cache-Control: no-cache

First line is the "Request Line" which contains some basic info on the request. And the rest are the HTTP headers.
After that request, your browser receives an HTTP response that may look like this:
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
HTTP/1.x 200 OK
Transfer-Encoding: chunked
Date: Sat, 28 Nov 2009 04:36:25 GMT
Server: LiteSpeed
Connection: close
X-Powered-By: W3 Total Cache/0.8
Pragma: public
Expires: Sat, 28 Nov 2009 05:36:25 GMT
Etag: "pub1259380237;gz"
Cache-Control: max-age=3600, public
Content-Type: text/html; charset=UTF-8
Last-Modified: Sat, 28 Nov 2009 03:50:37 GMT
Content-Encoding: gzip
Vary: Accept-Encoding, Cookie, User-Agent
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Top 20+ MySQL Best Practices - Nettuts+</title>
The first line is the "Status Line", followed by "HTTP headers", until the blank line. After that, the "content" starts (in this case, an HTML output).
When you look at the source code of a web page in your browser, you will only see the HTML portion and not the HTTP headers, even though they actually have been transmitted together as you see above.
These HTTP requests are also sent and received for other things, such as images, CSS files, JavaScript files etc. That is why I said earlier that your browser has sent at least 40 or more HTTP requests as you loaded just this article page.
Now, let's start reviewing the structure in more detail.
I use the following Firefox extensions to analyze HTTP headers:
Firebug


In PHP:
Further in the article, we will see some code examples in PHPPH
Please subscribe and share

Comments

Popular posts from this blog

GUILDLINES NEEDED WHEN SENDING OUT INVITATION CARD FOR ENTERTAINMENT

There are seemingly endless elements that go into planning a party, but sending out invitations is one of the most vital! Once you’ve picked out the perfect invitations and narrowed down your guest list, send the invitations out in plenty of time so your guests can start making plans to attend. Be sure to address and mail the envelopes correctly to make sure everyone gets their invitation. If you’re not keen on sending out a lot of paper invitations, consider alternatives, such as digital invitations. Method 1 of 5 1.   Finalize your guest list at least 4-6 months before the party. You’ll need to be absolutely sure of who you want to invite before you start sending out invitations or even save-the-dates.  Sit down with your friend and work out your guest list as soon as possible. If you’re planning a destination party, it’s even more crucial to finalize your guest list right away. Try to determine exactly who you’re going to invite 9 months to a year in advanc...

The two main steps in making scale drawing

Scale drawings show an image either reduced or enlarged in size. The change between the original and the scaled drawing is generally represented by two numbers separated by a colon, like 10:1 (read as “ten to one”). The difference between the ratio numbers represents the factor by which the scaled image is enlarged or reduced. So for a 10:1 scale ratio, a 1 inch (2.5 cm) drawing will be 10 inches (25 cm) in real life. Method  1  of 2: Adjusting Image Size by Hand 1 Measure the object you’ll be scaling.  For images that are irregularly shaped, measuring with a ruler or tape measure can be difficult. In these cases, outline the perimeter with a piece of string, then measure the length of the string to find the perimeter. For rough scaling of simple 2-D objects, you can probably get by with only measuring the width and height of the object. [1] It’ll be helpful when you start drawing the scaled image if the perimeter is broken up into segments,...

Qualities required to be a good documentary writer

Documentaries are non-fiction films that explore a person, place, event, or phenomenon using real-life audio, video, and recreations. The goal is to illuminate a subject that most people have never experienced, using pictures and sound to tell the story of something real. There are as many different types of documentaries as there are things in the world, but there are some common threads in every documentary. Method  1  of 3: Preparing your Documentary (Pre-Production) 1   Find a captivating, accessible subject.   Documentaries are films about real-life subjects, bringing together interviews, documents, footage, and narration to tell the story of a person, place, or event. Is there a story you believe   needs   to be told? Is there an interesting person in your area with a captivating tale? Since documentaries are grounded in fact, you need to choose a subject that you can get information and interviews on easily. Thus, a filmmaker with limi...