Python Network 0 quizes
In the following URL, how many parameters are in the query string?
https://www.google.com/apply?batch=89&location=SF
- 1
- 2
- 3
When you are typing https://intranet.hbtn.io in your browser, which HTTP verb is used?
- GET
- POST
- DELETE
- PUT
What is the name of the HTTP request header used to send cookies from the client?
- Cookie
- Set-Cookie
- Send-Cookie
- Cookies
What will be the port number requested by this URL?
afp://www.google.com/access_in_port_543
- 548
- 543
- 80
What’s the status code number for a web page that can’t be found?
- 500
- 404
- 405
Which curl option is used to set an HTTP header to a specific value?
- -s
- -H
- -X
In the following URL, what’s the resource path?
https://www.google.com/index.html
- www.google.com/index.html
- /
- index.html
What is the name of the HTTP response header that defines a list of available HTTP methods for this URL?
- Verbs-Allowed
- Verbs
- Allow
When an HTTP response indicates a redirection, which header defines the URL the client should be redirected to?
- Next-Location
- Redirect-URI
- Location
- Redirect
- Redirect-Location
In this following HTML code, which HTTP verb will be used when you will submit this form?
<FORM action="/12/update.php" method="put">
<INPUT type="text" name="first_name" value="Bob"/>
<INPUT type="text" name="last_name" value="Dylan"/>
<INPUT type="submit" name="update" value="Update" />
<FORM>- POST
- GET
- UPDATE
- PUT
What is the curl option that defines the HTTP method used?
- -s
- -d
- -X
In the following URL, what’s the sub domain?
https://api-dev.google.com/v1/auth/new
- /v1
- api-dev
- /v1/auth/new
What is the name of the HTTP request header that defines the size (in bytes) of the message body?
- Content-Size
- Content-Length
- Length
- Size
What is the name of the HTTP response header used to send cookies to the client from the server?
- Cookie-Setter
- Send-Cookies
- Set-Cookie
In the following URL, what’s the protocol?
http://www.google.com
- ftp
- http
- https
What is the name of the HTTP response header used to define the size, in bytes, of the body of the response?
- Length
- Body-Size
- Content-Size
- Content-Length
What will be the port number requested by this URL?
https://www.google.com:8080/apply
- 8888
- 80
- 8080
In the following URL, how many parameters are in the query string?
https://www.google.com/apply?batch=89&location=SF&name=John%20do%20is%20the%20best%20%3D%20c%20is%20fun
- 1
- 3
- 2
- 5
- 4
Which HTTP request header indicates the browser used by the client sending the request?
- I-Am
- Origin
- User-Agent
- Browser-Name
In the following URL, what’s the hostname?
http://www.google.com
- www.google.com
- google.com
- www.google
What is the curl option to follow all redirects?
- -L
- -s
- -X
In the following URL, what’s the name of the parameter in the query string?
https://www.google.com/apply?batch=89
- 89
- batch
- apply
In the following URL, what’s the resource path?
https://api.google.com/v1/auth/new
- v1/auth/new
- v1
- v1/auth
- ]v1/auth/new/index.html
What is the curl option to disable the progression display?
- -b
- -s
- -c
- -p
In the following URL, what’s the sub domain?
https://api.google.com/v1/auth
- api
- .com
- api.google
In the following URL, what’s the resource path?
https://www.google.com/assets/scripts/main.js
- assets/scripts
- assets/scripts/main.js
- main.js
What’s the status code number for an invalid HTTP request (server can’t understand it)?
- 400
- 500
- 404
What is the curl option to set a body key-value parameter?
- -d
- -b
- -X
What is the name of the HTTP response header used to define the formatting of the body? (This header gives details to the client on how to interpret the data received.)
- Format
- Type
- Content-Format
- Content-Type
What is the curl option to set a cookie with a key-value pair?
- -a
- -d
- -b
- -c
What is the curl option to save the body of the resulting response to a file?
- -r
- -d
- -b
- -o
In this following HTML code, which HTTP verb will be used when you will submit this form?
<FORM action="/login.php" method="post">
<INPUT type="email" name="email" placeholder="Email" required/>
<INPUT type="password" name="password" placeholder="Password" required/>
<INPUT type="submit" name="submit" value="Login" />
<FORM>- SUBMIT
- POST
- FORM
- GET
- ENTER
What will be the port number requested by this URL?
http://www.google.com/apply
- 443
- 8080
- 80
- 22
What is the first digit of status codes that indicate a server error?
- 3xx
- 1xx
- 2xx
- 5xx
- 4xx
What is the name of the HTTP response header used to define the status code of the response?
- Code
- Status
- Status-Code
- Http-Status
What’s the status code number for a permanent redirection (moved permanently)?
- 301
- 201
- 300
- 304
- 302
