tagged [request]

How to modify the nodejs request default timeout time?

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, ...

30 Apr at 22:21

Prevent pushing to master on GitHub?

Prevent pushing to master on GitHub? GitHub allows you to configure your repository so that [users can't force push to master](https://github.com/blog/2051-protected-branches-and-required-status-check...

Javascript : Send JSON Object with Ajax?

Javascript : Send JSON Object with Ajax? Is this possible? Maybe with: a header with `content type` : `application/json`?: Otherwise I can use: and then `JSON.stringify`

20 Jun at 22:15

POST data with request module on Node.JS

POST data with request module on Node.JS This module is 'request [https://github.com/mikeal/request](https://github.com/mikeal/request) I think i'm following every step but i'm missing an argument.. `...

21 Jun at 22:22

useing several List<T> as Request in servicestack

useing several List as Request in servicestack When I use several `List` as request,several `List`1` appeared on the metadata page. So this is not unique and can not view the operation. But the operat...

25 Jul at 13:8

PHP GuzzleHttp. How to make a post request with params?

PHP GuzzleHttp. How to make a post request with params? How to make a post request with GuzzleHttp( version 5.0 ). I am trying to do the following: But I am getting the

22 Mar at 01:30

Undo a merge by pull request?

Undo a merge by pull request? Someone accepted a pull request which they shouldn't have. Now we have a bunch of broken code merged in. How do you undo a pull request? I was just going to revert the ch...

6 Jan at 02:4

Why do HTTPS requests produce SSL CERTIFICATE_VERIFY_FAILED error?

Why do HTTPS requests produce SSL CERTIFICATE_VERIFY_FAILED error? Here is my Python code: This is the error: ``` requests.exceptions.SSLError: HTTPSConnectionPool(host='google.com', port=443): Max re...

2 Sep at 12:54

How do I send a POST request with PHP?

How do I send a POST request with PHP? Actually I want to read the contents that come after the search query, when it is done. The problem is that the URL only accepts `POST` methods, and it does not ...

22 Sep at 17:53

get current page from url

get current page from url I want to write a c# method to retrieve the current page. eg Default6.aspx I know I can do the following:

28 Jan at 16:45

ServiceStack - How to return ResponseDTO from RequestFilter?

ServiceStack - How to return ResponseDTO from RequestFilter? I am using a RequestFilter for pre-processing some of the messages to a web service, and if there are errors I want to return a ResponseDTO...

28 Feb at 17:6

How can I check out a GitHub pull request with git?

How can I check out a GitHub pull request with git? I'd like to check out a previously created pull request (created via GitHub web interface). I searched and found different places where a refs/pull ...

7 Oct at 10:54

POST request with a simple string in body with Alamofire

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 parame...

23 Jun at 22:30

DownloadStringAsync wait for request completion

DownloadStringAsync wait for request completion I am using this code to retrieve an url content: ``` private ArrayList request(string query) { ArrayList parsed_output = new ArrayList(); string url...

WebClient - get response body on error status code

WebClient - get response body on error status code I'm looking essentially for the same thing asked here: [Any way to access response body using WebClient when the server returns an error?](https://st...

23 May at 12:0

MVC Controller return a bad request?

MVC Controller return a bad request? I was wondering if it was possible to return a bad request with content from an MVC Controller? The only way I have been able to do this is to `throw HttpException...

What does the HTTP 206 Partial Content status message mean and how do I fully load resources?

What does the HTTP 206 Partial Content status message mean and how do I fully load resources? I have some image tags on a site like this. When I try to load them they are only half loading. When I che...

How to check if users visiting the site are on root page or any other page?

How to check if users visiting the site are on root page or any other page? Basically I want a certain layout to be used when someone is visiting the root page: And another layout when visiting anywhe...

30 Apr at 19:34

A potentially dangerous Request.Form value was detected from the client

A potentially dangerous Request.Form value was detected from the client I have one asp.net application, which has some problems while i am entering the special characters such as ": &#, " in the searc...

2 Jun at 06:7

How do I disable request validation without setting RequestValidationMode to 2.0?

How do I disable request validation without setting RequestValidationMode to 2.0? We've just upgraded to ASP.NET 4.0, and found that requestValidation no longer works. The MSDN docs suggest we need to...

get main part of url including virtual directory

get main part of url including virtual directory I am working with .net 4.0 c#. I want to be able to get the url from the current http request, including any virtual directory. So for example (request...

3 Nov at 19:11

Request.QueryString[] vs. Request.Query.Get() vs. HttpUtility.ParseQueryString()

Request.QueryString[] vs. Request.Query.Get() vs. HttpUtility.ParseQueryString() I searched SO and found similar questions, but none compared all three. That surprised me, so if someone knows of one, ...

Doing HTTP requests FROM Laravel to an external API

Doing HTTP requests FROM Laravel to an external API What I want is get an object from an API with a HTTP (eg, jQuery's AJAX) request to an external api. How do I start? I did research on Mr Google but...

23 May at 11:33

Node.js: How to send headers with form data using request module?

Node.js: How to send headers with form data using request module? I have code like the following: How can I set headers for this? I need user-agent, content-type and probably something else to b

8 Jul at 21:32

ServiceStack ORMLite - How to Select All to match the request DTO's properties automatically

ServiceStack ORMLite - How to Select All to match the request DTO's properties automatically I have several ServiceStack ORMLite POCO, one is Company below. If two