Questions tagged [httprequest]

HTTP Request is a message within a request/response sequence, according to HTTP specification. May also refer an HttpRequest class in software frameworks and libraries that automates relevant functionality

From W3C specification:

A request message from a client to a server includes, within the first line of that message, the method to be applied to the resource, the identifier of the resource, and the protocol version in use.

    Request       = Request-Line              ;
                    *(( general-header        ;
                     | request-header         ;
                     | entity-header ) CRLF)  ;
                    CRLF
                    [ message-body ]          ;

See also:

7047 questions
2006
votes
11 answers

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

Use of java.net.URLConnection is asked about pretty often here, and the Oracle tutorial is too concise about it. That tutorial basically only shows how to fire a GET request and read the response. It doesn't explain anywhere how to use it to among…
BalusC
  • 992,635
  • 352
  • 3,478
  • 3,452
1280
votes
14 answers

How to make an HTTP POST web request

Canonical How can I make an HTTP request and send some data using the POST method? I can do a GET request, but I have no idea of how to make a POST request.
Hooch
  • 25,377
  • 28
  • 89
  • 154
1170
votes
8 answers

Local Storage vs Cookies

I want to reduce load times on my websites by moving all cookies into local storage since they seem to have the same functionality. Are there any pros/cons (especially performance-wise) in using local storage to replace cookie functionality except…
Gio Borje
  • 16,826
  • 7
  • 33
  • 50
1133
votes
14 answers

Are HTTPS URLs encrypted?

Are all URLs encrypted when using TLS/SSL (HTTPS) encryption? I would like to know because I want all URL data to be hidden when using TLS/SSL (HTTPS). If TLS/SSL gives you total URL encryption then I don't have to worry about hiding confidential…
Daniel Kivatinos
  • 21,262
  • 23
  • 57
  • 81
1011
votes
21 answers

How is an HTTP POST request made in node.js?

How can I make an outbound HTTP POST request, with data, in node.js?
Mark
  • 57,724
  • 41
  • 114
  • 149
581
votes
13 answers

How to send a PUT/DELETE request in jQuery?

GET:$.get(..) POST:$.post().. What about PUT/DELETE?
user198729
  • 55,886
  • 102
  • 239
  • 342
340
votes
9 answers

How can I add a custom HTTP header to ajax request with js or jQuery?

Does anyone know how to add or create a custom HTTP header using JavaScript or jQuery?
Txugo
  • 4,606
  • 4
  • 30
  • 39
312
votes
4 answers

What are all the possible values for HTTP "Content-Type" header?

I have to validate the Content-Type header value before passing it to an HTTP request. Is there a specific list for all the possible values of Content-Type? Otherwise, is there a way to validate the content type before using it in an HTTP request?
Awesome
  • 4,201
  • 5
  • 26
  • 50
286
votes
23 answers

How do you make a HTTP request with C++?

Is there any way to easily make a HTTP request with C++? Specifically, I want to download the contents of a page (an API) and check the contents to see if it contains a 1 or a 0. Is it also possible to download the contents into a string?
Sam152
  • 17,679
  • 13
  • 55
  • 76
229
votes
7 answers

Postman: How to make multiple requests at the same time

I want to POST data from Postman Google Chrome extension. I want to make 10 requests with different data and it should be at the same time. Is it possible to do such in Postman? If yes, can anyone explain to me how can this be achieved?
user3384231
  • 2,541
  • 2
  • 14
  • 20
221
votes
8 answers

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 a request from the Postman? curl -X POST…
Marin Bînzari
  • 3,490
  • 2
  • 23
  • 39
216
votes
9 answers

Request Monitoring in Chrome

In Firefox, I use Firebug which allows me to view every http request my ajax calls are making. I've switched over my development to Chrome and am liking it so far. My only complaint, however, is that the developer tools don't seem to allow you to…
Wes P
  • 9,102
  • 14
  • 39
  • 48
213
votes
7 answers

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: id = 13 name = Jack What is the simplest way to do that? I don't even want to read the response. I just want to send…
angeant
  • 2,565
  • 3
  • 15
  • 9
207
votes
12 answers

HTTP GET Request in Node.js Express

How can I make an HTTP request from within Node.js or Express.js? I need to connect to another service. I am hoping the call is asynchronous and that the callback contains the remote server's response.
Travis Parks
  • 7,747
  • 9
  • 44
  • 83
189
votes
12 answers

How can I get the baseurl of site?

I want to write a little helper method which returns the base URL of the site. This is what I came up with: public static string GetSiteUrl() { string url = string.Empty; HttpRequest request = HttpContext.Current.Request; if…
Jaggu
  • 5,932
  • 16
  • 54
  • 94
1
2 3
99 100