tagged [http]

HttpClient retrieve all headers

HttpClient retrieve all headers Currently, I am working on API wrapper. If I send a bad `Consumer Key`, the server will return `Status` as `403 Forbidden` in the header. It will also pass custom heade...

What is the difference between URI, URL and URN?

What is the difference between URI, URL and URN? What's the difference between an URI, URL and URN? I have read a lot of sites (even Wikipedia) but I don't understand it. URI: [http://www.foo.com/bar....

6 Feb at 12:48

URL format with GET parameters?

URL format with GET parameters? Is there a specification somewhere listing the correct way to pass GET variables to a URL? Normally I do it like this (first variable indicated by ?, second and subsequ...

13 May at 22:35

What is the usefulness of PUT and DELETE HTTP request methods?

What is the usefulness of PUT and DELETE HTTP request methods? I've never used PUT or DELETE HTTP Request methods. My tendency is to use GET when the state of the system (my application or website) ma...

11 Nov at 15:37

System.Web.Http missing in .net Core 2.1

System.Web.Http missing in .net Core 2.1 System.Web.Http is missing in my .net core 2.1 project. the error states > Error CS0234 The type or namespace name 'Http' does not exist in the namespace 'Syst...

What should a Multipart HTTP request with multiple files look like?

What should a Multipart HTTP request with multiple files look like? I'm working on an iPhone app that makes a multipart HTTP request with multiple image files. It looks like what's happening, on the s...

27 May at 02:3

Detect/estimate country of a http-request in ASP.NET

Detect/estimate country of a http-request in ASP.NET I'm looking for ways to detect/estimate the from which a is coming in . I know there are some solutions with services/country lookups but I never u...

17 Aug at 12:33

Maximum length of HTTP GET request

Maximum length of HTTP GET request What's the maximum length of an HTTP [GET](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods) request? Is there a response error defined that...

22 Jan at 23:34

HTTP POST using JSON in Java

HTTP POST using JSON in Java I would like to make a simple HTTP POST using JSON in Java. Let's say the URL is `www.site.com` and it takes in the value `{"name":"myname","age":"20"}` labeled as `'detai...

16 Oct at 06:6

HTTP response header, format for "Expires"

HTTP response header, format for "Expires" I am setting this in C# with this line: Now I know the format is off on this as it expects the following: Tue, 06 Dec 2011 20:24:15 GMT Is there a class in ....

23 Jan at 20:59

Difference between application/x-javascript and text/javascript content types

Difference between application/x-javascript and text/javascript content types What is the difference between these headers? Which one is best and why? Please do not say they are identical - if they we...

16 Jan at 23:33

HttpStatusCode is any 500 type

HttpStatusCode is any 500 type I was wondering if there was an easier way (nicer way) to check for a 500 status code? The only way I can think of doing this is by doing: ``` var statusCodes = new List...

10 May at 11:51

Difference between Request.Form and Request.QueryString?

Difference between Request.Form and Request.QueryString? Can some tell me the exact difference between `Request.Form` and `Request.QueryString`? I know one difference, like > If the HTTP request metho...

Customize OWIN/OAuth HTTP status code when rejecting a token request

Customize OWIN/OAuth HTTP status code when rejecting a token request I've derived [OAuthAuthorizationServerProvider](https://msdn.microsoft.com/en-us/library/microsoft.owin.security.oauth.oauthauthori...

13 May at 18:47

How to post form-data IFormFile with HttpClient?

How to post form-data IFormFile with HttpClient? I have backend endpoint `Task Post(IFormFile csvFile)` and I need to call this endpoint from HttpClient. Currently I am getting `Unsupported media type...

Content-Disposition:What are the differences between "inline" and "attachment"?

Content-Disposition:What are the differences between "inline" and "attachment"? What are the differences between and I don't know the differences , because when I use one or another I always get a win...

22 Mar at 15:10

C# method to do URL encoding?

C# method to do URL encoding? what c# class method can I use to URL encode a URL string? In my use case I want to pass a URL string as a URL parameter itself. So like burying a URL within a URL. Witho...

1 Oct at 22:36

How can I get all the request headers in Django?

How can I get all the request headers in Django? I need to get all the Django request headers. From what I've read, Django simply dumps everything into the `request.META` variable along with a lot of ...

How to prevent http file caching in Apache httpd (MAMP)

How to prevent http file caching in Apache httpd (MAMP) I am developing a single page Javascript application in MAMP. My JavaScript and HTML template files are getting cached between requests. Is ther...

24 Nov at 16:20

How can I select and upload multiple files with HTML and PHP, using HTTP POST?

How can I select and upload multiple files with HTML and PHP, using HTTP POST? I have experience doing this with single file uploads using ``. However, I am having trouble doing uploading more than on...

8 Jun at 08:18

Disabled form inputs do not appear in the request

Disabled form inputs do not appear in the request I have some disabled inputs in a form and I want to send them to a server, but Chrome excludes them from the request. Is there any workaround for this...

7 Jul at 12:35

Asp.net Web Api set response status code to number

Asp.net Web Api set response status code to number In Asp.net Web Api, how do I set the status code of my response using an int or string, not the StatusCode enum? In my case, I'd like to return vali...

19 Oct at 19:56

HTTP Request in Swift with POST method

HTTP Request in Swift with POST method I'm trying to run a HTTP Request in Swift, to POST 2 parameters to a URL. Example: Link: `www.thisismylink.com/postName.php` Params: What is the simplest way to ...

Problem HTTP error 403 in Python 3 Web Scraping

Problem HTTP error 403 in Python 3 Web Scraping I was trying to a website for practice, but I kept on getting the HTTP Error 403 (does it think I'm a bot)? Here is my code: ``` #import requests import...

The remote server returned an error: (404) Not Found

The remote server returned an error: (404) Not Found I am running this piece of code to get the source code (as string) of my [webpage.](http://www.kickstart.gr) The problem is why this function retur...