Search
 
SCRIPT & CODE EXAMPLE
 

CSS

http request

HTTP request method is made up of four components:
Request Method ==> Get, Post, Put, Delete (these are
the common ones)
Request URL ==> the URL of the resource
Request Header ==> Accept-Language, AcceptEncoding, User-Agent, Host
Request Body ==> This is the data to be sent to the
resource
Request Query Parameters : key value pair 
		 	
HTTP response method is made up of three components:
Response Status Code ==> 200, 301, 404, 500
(these are the most common ones)
Response Header Fields ==> Date, Server, LastModified, Content-Type
Response Body ==> This is the data that comes
back to the client from the server.
Comment

http request

GET /library/ 
Host: www.cloudacademy.com
Scheme: https
User-Agent: Chrome Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Comment

https request

JScopieddoneconst https = require('https')const options = {  hostname: 'example.com',  port: 443,  path: '/todos',  method: 'GET'}
const req = https.request(options, res => {  console.log(`statusCode: ${res.statusCode}`)
  res.on('data', d => {    process.stdout.write(d)  })})
req.on('error', error => {  console.error(error)})
req.end()
Comment

PREVIOUS NEXT
Code Example
Css :: flex order 
Css :: font-style 
Css :: Loop Over Array of Objects and Combine them if they have similar keys 
Css :: how to add google fonts to css in react 
Css :: restrict css to apply on div 
Css :: Changing Image depending on Mobile or Desktop HTML & CSS 
Css :: CSS Grid Layout Module 
Css :: object-fit: cover; 
Css :: webpack compile sass to css file 
Css :: div position by default 
Css :: css flex 
Css :: html css drow line 
Css :: css animation png 
Css :: css active button 
Css :: scss extend from another css file 
Css :: circle css animation 
Css :: css add space right 
Css :: three dots animation 
Css :: github lottie 
Css :: why is my body background color in css not working 
Css :: css grid cheat sheet 
Css :: text-shadow 
Css :: inline css not working table odoo 11 
Css :: pink hex code 
Css :: PY Bisect key sort 
Css :: if i forked and cloned a github repo can i change the name 
Css :: table inside table not matching borders 
Css :: btn keeps pushing down on window resize 
Css :: how to solve your coading bugs 
Css :: operating system font-family css 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =