All fields

“HttpClient” in Information Technology

27 questions across 5 technologies.

Information Technology

27 questions in 5 technologies

#QuestionTechnologyTopicLevel
1Why is it important to validate a server's TLS certificate when making outbound HttpClient calls to external services, and what's the risk of disabling certificate validation? ASP.NET Core › HTTPS, Certificates & Transport SecurityASP.NET CoreHTTPS, Certificates & Transport SecurityIntermediate
2How would you configure HttpClient with custom timeouts, a proxy, and connection pooling behavior, and what's the difference between a connection timeout and a request/response timeout? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientIntermediate
3How would you implement retry logic with exponential backoff for HTTP requests made via HttpClient, given the client doesn't provide built-in retry support natively? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientAdvanced
4What is the modern java.net.http.HttpClient (introduced in Java 11), and how does it improve on the older HttpURLConnection for making HTTP requests? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientBeginner
5How do you make a basic GET request to a server using Angular's HttpClient? Angular › HTTP Client & InterceptorsAngularHTTP Client & InterceptorsBeginner
6How do you send data to a server using a POST request with Angular's HttpClient? Angular › HTTP Client & InterceptorsAngularHTTP Client & InterceptorsBeginner
7How do you register and use HttpClient with IHttpClientFactory in MAUI? .NET MAUI › Dependency Injection & Services.NET MAUIDependency Injection & ServicesIntermediate
8How do you register and use HttpClient with IHttpClientFactory in MAUI? .NET MAUI › Dependency Injection & Services.NET MAUIDependency Injection & ServicesIntermediate
9How do you call an existing ASP.NET Core minimal API or controller endpoint from a Blazor WebAssembly component using HttpClient? ASP.NET Core › Blazor Integration with ASP.NET CoreASP.NET CoreBlazor Integration with ASP.NET CoreIntermediate
10How would you make an asynchronous, non-blocking HTTP request using HttpClient's sendAsync() method, and how does the returned CompletableFuture integrate with the rest of an asynchronous pipeline? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientIntermediate
11How would you send a POST request with a JSON request body using HttpClient, and correctly parse a JSON response using a library like Jackson? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientIntermediate
12What is the java.net.Socket and ServerSocket class pair, and how would you implement a basic TCP client-server communication using them at a lower level than HttpClient? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientIntermediate
13How would you send URL-encoded form data (application/x-www-form-urlencoded) using HttpClient, as opposed to a JSON request body? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientIntermediate
14How does HttpClient handle automatic following of HTTP redirects (3xx responses), and how would you configure or disable this behavior? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientIntermediate
15How would you configure HttpClient to trust a custom or self-signed SSL/TLS certificate for testing against an internal service, and what security risks does disabling certificate validation entirely introduce? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientAdvanced
16How would you implement connection-level HTTP/2 server push handling using HttpClient's PushPromiseHandler, and in what scenario would a server proactively push additional resources? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientAdvanced
17How do you call a REST API in MAUI? .NET MAUI › Networking & APIs.NET MAUINetworking & APIsBeginner
18How do you call a REST API in MAUI? .NET MAUI › Networking & APIs.NET MAUINetworking & APIsBeginner
19How do you implement resilient HTTP calls (retries, timeouts) in MAUI? .NET MAUI › Networking & APIs.NET MAUINetworking & APIsIntermediate
20How do you implement resilient HTTP calls (retries, timeouts) in MAUI? .NET MAUI › Networking & APIs.NET MAUINetworking & APIsIntermediate
21How do you generate and use a strongly-typed gRPC client in a .NET application to call a gRPC service? ASP.NET Core › gRPC ServicesASP.NET CoregRPC ServicesIntermediate
22How do you configure gRPC to work correctly when hosted behind a reverse proxy or load balancer, given gRPC's reliance on HTTP/2? ASP.NET Core › gRPC ServicesASP.NET CoregRPC ServicesIntermediate
23What is certificate pinning, and why is it generally discouraged for typical web API scenarios despite its security benefits? ASP.NET Core › HTTPS, Certificates & Transport SecurityASP.NET CoreHTTPS, Certificates & Transport SecurityIntermediate
24How do you implement authentication token refresh transparently for API calls? .NET MAUI › Networking & APIs.NET MAUINetworking & APIsAdvanced
25How do you implement authentication token refresh transparently for API calls? .NET MAUI › Networking & APIs.NET MAUINetworking & APIsAdvanced
26How would you implement deadline/timeout propagation across a chain of gRPC calls to prevent cascading resource exhaustion when a downstream service is slow? ASP.NET Core › gRPC ServicesASP.NET CoregRPC ServicesAdvanced
27How would you set a per-check timeout to prevent one slow or hanging dependency check from blocking the entire /health endpoint response indefinitely? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksAdvanced