3.4 PSR-7 HTTP Request/Response

Descripción

TYPO3 CD 2020 (zweite Auflage) Test sobre 3.4 PSR-7 HTTP Request/Response, creado por Pascal Bartl el 09/04/2021.
Pascal Bartl
Test por Pascal Bartl, actualizado hace más de 1 año
Pascal Bartl
Creado por Pascal Bartl hace más de 3 años
0
0

Resumen del Recurso

Pregunta 1

Pregunta
Which statements about the PSR-7 standard and the Guzzle library are correct? (2)
Respuesta
  • PSR-7 is the successor of PSR-2 and it describes a coding standard
  • The Guzzle library (used in the TYPO3 core) utilizes PSR-7 as the HTTP message interface
  • The TYPO3 core features a simplified wrapper (the “RequestFactory”) to access Guzzle clients
  • “cURL” needs to be installed on the system to generate valid HTTP requests according to the PSR-7 standard
  • The Guzzle library is used to generate PSR-7 conform HTML emails in TYPO3

Pregunta 2

Pregunta
You are using TYPO3’s RequestFactory to generate HTTP requests to a remote server. The remote server returns a redirect to another URI. What is required to access the redirect target? (1)
Respuesta
  • This is not possible. Only web browsers can follow redirects for security reasons
  • You have to parse the response header and manually initiate a second request to follow the redirect
  • You use TYPO3’s RedirectManager instead of the RequestFactory
  • The RequestFactory automatically follows redirects if they are enabled in the backend module SITE MANAGEMENT → Redirects
  • You configure the RequestFactory to follow redirects by passing additional options to the request() call
Mostrar resumen completo Ocultar resumen completo

Similar

Mejores Sistemas Educativos del Mundo
Diego Santos
TEOREMA de PITÁGORAS - Del Mapa Mental
JL Cadenas
El sistema nervioso
crisferroeldeluna
ETICA Y MORAL
jorge.diaz.lombana
Cambios funcionales en el sistema renal
Martín López Barrientos
Simulacro Prueba ICFES
pulidonomesque
=ARTE=...
JL Cadenas
HOW TO WAKE UP EARLY
Elaine del Valle
¿COMO HACER UN CUADRO SINOPTICO?
luisa valentina castaño acuña
USO DE HERRAMIENTAS DE DISEÑO AUTOCAD
mart cruzz
MAPA DE ACTORES DE ACOMPAÑAMIENTO PSICOSOCIAL DESDE LA PSICOLOGIA JURIDICA A VICTIMAS DE LA CONFRONTACION ARMADA.
JUAN CARLOS VELEZ LOPEZ