tagged [httprequest]

How does Request.IsAuthenticated work?

How does Request.IsAuthenticated work? MSDN Code Sample Description: The following code example uses the IsAuthenticated property to determine whether the current request has been authenticated. If it...

4 Feb at 16:19

javascript: cancel all kinds of requests

javascript: cancel all kinds of requests My website makes a lot of requests. I often need to cancel all current requests, so that the browser is not blocking relevant new requests. I have 3 kinds of r...

23 Nov at 16:46

Simulate a specific CURL in PostMan

Simulate a specific CURL in PostMan I am using Postman to test some Curl requests to an API server. The API developers gave us the curl command, but I can't send it from the Postman. How to make such ...

7 Aug at 11:7

Get full URL and query string in Servlet for both HTTP and HTTPS requests

Get full URL and query string in Servlet for both HTTP and HTTPS requests I am writing a code which task is to retrieve a requested URL or full path. I've written this code: So, when I browse `http://...

22 Jul at 14:9

How to change a header value of HttpRequestMessage

How to change a header value of HttpRequestMessage In a validation setup I want to change the value of a header of a `HttpRequestMessage`. In a `HttpClientHandler` I have the following code: ``` prote...

1 Oct at 06:48

Determine if Host Is Resolved DNS Name Or IP

Determine if Host Is Resolved DNS Name Or IP If one is extracting a `HOST` value from an `HttpContext`'s `HttpRequest`'s `Headers` collection, is there a way of determining if the value returned is a ...

12 May at 14:9

Can I test form data using `HttpResultsFilter` callback?

Can I test form data using `HttpResultsFilter` callback? In a ServiceStack project I am trying to test the following application code: ServiceStack provides the [HttpResultFilter](https://github.com/S...

Adding HTTP request header to WCF request

Adding HTTP request header to WCF request I have a WCF service consume by both AJAX and C# application, I need to send a parameter through the HTTP request header. On my AJAX I have added the followin...

12 Jul at 02:6

How do you create an asynchronous HTTP request in JAVA?

How do you create an asynchronous HTTP request in JAVA? I'm fairly new to Java, so this may seem obvious to some. I've worked a lot with ActionScript, which is very much event based and I love that. I...

13 Jul at 02:2

C# ASP.NET: how to access cache when no HttpContext.Current is available (is null)?

C# ASP.NET: how to access cache when no HttpContext.Current is available (is null)? During `Application_End()` in Global.aspx, HttpContext.Current is null. I still want to be able to access cache - , ...

Get a JSON via HTTP request in NodeJS

Get a JSON via HTTP request in NodeJS Here is my model with a JSON response: Here I get it via `http.request`. Why do I receive (data) a string and not a JSON? ``` var option

1 Apr at 16:43

How to extract custom header value in Web API message handler?

How to extract custom header value in Web API message handler? I currently have a message handler in my Web API service that overrides 'SendAsync' as follows: Within this code I need to inspect a cust...

19 Feb at 21:8

How to upload images and file to a server in Flutter?

How to upload images and file to a server in Flutter? I use a web service for image processing , it works well in Postman: [](https://i.stack.imgur.com/UAHqI.png) Now I want to make http request in ...

19 Jun at 06:18

How to use java.net.URLConnection to fire and handle HTTP requests

How to use java.net.URLConnection to fire and handle HTTP requests Use of [java.net.URLConnection](http://docs.oracle.com/javase/8/docs/api/java/net/URLConnection.html) is asked about pretty often her...

Proxies with Python 'Requests' module

Proxies with Python 'Requests' module Just a short, simple one about the excellent [Requests](https://requests.readthedocs.io/en/latest/) module for Python. I can't seem to find in the documentation w...

IIS Custom field logging through HTTP Request in ASP NET Core

IIS Custom field logging through HTTP Request in ASP NET Core I have enabled IIS logging with custom fields for my website. [](https://i.stack.imgur.com/F6bNb.png) Previously in MVC, I have used HTTPH...

HttpModule to add headers to request

HttpModule to add headers to request This seems like a simple operation. We have a need in our development environment (running on XP/IIS 5) to add some headers into each HttpRequest arriving at our a...

10 Jun at 13:47

Value cannot be null. Parameter name: request

Value cannot be null. Parameter name: request I'm creating a unit test using nunit and all of this code works fine in runtime. I have this protected `HttpResponseMessage` code below that is being call...

How can I tell Swashbuckle that the body content is required?

How can I tell Swashbuckle that the body content is required? I have a WebAPI controller that accepts binary packages and stores them somewhere. As these packages can become quite large, I don't want ...

Synchronised requests enforced from ServiceStack 3 configuration

Synchronised requests enforced from ServiceStack 3 configuration I have an ASP.NET application, using NGINX as a server and Servicestack 3. When it comes to PUT requests, I'd like them to be synchrono...

Configuring lifetime scopes in autofac when used as ServiceStack's IoC

Configuring lifetime scopes in autofac when used as ServiceStack's IoC I'm currently using AutoFac as the DI container for our ServiceStack web services app. I'm able to configure the wiring and every...

How to write a HTTP Request

How to write a HTTP Request Hello I try to write a HTTP Request in C# (Post), but I need help with an error Expl: I want to send the Content of a DLC File to the Server and recive the decrypted conten...

21 Nov at 19:7

HttpRequest vs HttpRequestMessage vs HttpRequestBase

HttpRequest vs HttpRequestMessage vs HttpRequestBase What are differences between these classes in ASP.NET? As I discovered there is no inheritance relationship between these classes. Below code retur...

6 May at 05:38

GetRequestStream() is throwing time out exception when posting data to HTTPS url

GetRequestStream() is throwing time out exception when posting data to HTTPS url I'm calling an API hosted on Apache server to post data. I'm using HttpWebRequest to perform POST in C#. API has both n...

9 Mar at 03:58

How to send POST request in JSON using HTTPClient in Android?

How to send POST request in JSON using HTTPClient in Android? I'm trying to figure out how to POST JSON from Android by using HTTPClient. I've been trying to figure this out for a while, I have found ...

14 Jul at 09:15