Questions tagged [request]

A request is a message sent by a source to another object.

A request is a message sent by a source (e.g. computer, client, browser ...etc) to another object or device (e.g. server, computer, phone, app ...etc).

src : wikipedia link

17442 questions
102
votes
4 answers

Simultaneous Requests to PHP Script

If the PHP Engine is already in the middle of executing a script on the server what would happen to other simultaneous browser requests to the same script? Will the requests be queued? Will they be ignored? Will each request have its own…
Kevin Boyd
  • 12,121
  • 28
  • 86
  • 128
99
votes
5 answers

Show Curl POST Request Headers? Is there a way to do this?

I'm building a Curl web automation app and am having some issue with not getting the desired outcome of my POST action, I am having some trouble figuring out how I can show the full POST request I am sending over (with headers), I have been…
Rick
  • 16,612
  • 34
  • 110
  • 163
99
votes
12 answers

POST request with a simple string in body with Alamofire

how is it possible to send a POST request with a simple string in the HTTP body with Alamofire in my iOS app? As default Alamofire needs parameters for a request: Alamofire.request(.POST, "http://mywebsite.example/post-request", parameters: ["foo":…
Karl
  • 1,601
  • 3
  • 15
  • 13
96
votes
7 answers

if-modified-since vs if-none-match

What could be the difference between if-modified-since and if-none-match? I have a feeling that if-none-match is used for files whereas if-modified-since is used for pages?
Tower
  • 98,741
  • 129
  • 357
  • 507
94
votes
5 answers

Download File from Bytes in JavaScript

I want to download the file which is coming in the form of bytes from the AJAX response. I tried to do it this way with the help of Blob: var blob=new Blob([resultByte], {type: "application/pdf"}); var…
Jahongir Rahmonov
  • 13,083
  • 10
  • 47
  • 91
92
votes
10 answers

Android - onRequestPermissionsResult() is deprecated. Are there any alternatives?

I tried to implement request permissions for writing and reading from storage. Everything worked good but today Android showed me that the method onRequestPermissionsResult(...) is deprecated. There are so many questions about this topic in…
ashley
  • 921
  • 1
  • 4
  • 4
91
votes
7 answers

Multiple fields with same key in query params (axios request)?

So the backend (not under my control) requires a query string like this: http://example.com/?foo=5&foo=2&foo=11 But axios uses a JS object to send the request params: axios.get('http://example.com/', { foo: 5 }); And obviously an object can't have…
Markus Meskanen
  • 19,939
  • 18
  • 80
  • 119
89
votes
8 answers

Persistent Service Worker in Chrome Extension

I need to define my Service Worker as persistent in my Chrome extension because I'm using the webRequest API to intercept some data passed in a form for a specific request, but I don't know how I can do that. I've tried everything, but my Service…
89
votes
7 answers

Node.js request CERT_HAS_EXPIRED

I'm using Mikeal's request (https://github.com/mikeal/request) to make an https request to a server. However, I keep getting an authorization error of CERT_HAS_EXPIRED. request({ url: 'https://www.domain.com/api/endpoint', strictSSL:…
wwwuser
  • 6,282
  • 8
  • 52
  • 64
87
votes
2 answers

Spring MVC How take the parameter value of a GET HTTP Request in my controller method?

In this period I am studing the Spring MVC showcase example (downloadable from STS dasboard) and I have some simple question about the Request Mapping examples: 1) In my home.jsp page I have this link:
  • AndreaNobili
    • 40,955
    • 107
    • 324
    • 596
  • 85
    votes
    3 answers

    Node.js request object documentation?

    This is a pretty straight forward question, but I haven't found anything on Google. I'm looking for documentation on the request parameter in Node.js's create server function, but I haven't been able to find…
    Benjamin Collins
    • 1,044
    • 2
    • 9
    • 23
    85
    votes
    3 answers

    How to obtain values of request variables using Python and Flask

    I'm wondering how to go about obtaining the value of a POST/GET request variable using Python with Flask. With Ruby, I'd do something like this: variable_name = params["FormFieldValue"] How would I do this with Flask?
    dougiebuckets
    • 2,383
    • 3
    • 27
    • 37
    84
    votes
    4 answers

    Where can I find the default timeout settings for all browsers?

    I'm looking for some kind of documentation that specifies how much time each browser (IE6/IE7/FF2/FF3, etc) will wait on a request before it just gives up and times out. I haven't had any luck trying to get this. Any pointers?
    Daniel Magliola
    • 30,898
    • 61
    • 164
    • 243
    82
    votes
    7 answers

    Angular 4.3.3 HttpClient : How get value from the header of a response?

    ( Editor: VS Code; Typescript: 2.2.1 ) The purpose is to get the headers of the response of the request Assume a POST request with HttpClient in a Service import { Injectable } from "@angular/core"; import { HttpClient, HttpHeaders, }…
    SolidCanary
    • 1,133
    • 1
    • 8
    • 15
    80
    votes
    6 answers

    How to modify the nodejs request default timeout time?

    I'm using a Node/express server. The default timeout of express is 120,000 ms, but it is not enough for me. When my response reaches 120,000 ms, the console will log POST /additem 200 120006ms and the page shows an error, so I want to set the…
    MarsOnly
    • 945
    • 1
    • 8
    • 9