Questions tagged [http-request]

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:

355 questions
3
votes
3 answers

How to make http put request with zip file in nodejs

I want to make a http PUT request with zip file in binary to a web api and get response with http status code. How to read the file and PUT it with binary ? Thank you for your help!!
Kevingo Tsai
  • 629
  • 7
  • 21
3
votes
2 answers

Multiple Ajax HTTP GET Requests with Different Input Variables using jQuery

I want to make asychronous get requests and to take different results based on the input that I provide to each one. Here is my code: param=1; $.get('http://localhost/my_page_1.php', param, function(data) { alert("id = "+param); $('.resul …
Thanasis Petsas
  • 4,378
  • 5
  • 31
  • 57
3
votes
2 answers

Swift URL Handling

This is my question; I want to get some data from an URL, this is the code: let internetURL = NSURL(string:"http://www.example.org") let siteURL = NSURLRequest(URL: internetURL!) let siteData = NSURLConnection(request: siteURL, delegate: nil,…
massimilianos
  • 25
  • 1
  • 3
3
votes
3 answers

Adding missing request parameter before persistance in Sails.JS

Is it possible to "insert" a missing parameter (in case it was not sent), in order to persist them all via req.params.all()? Currently trying to do so, gets me a no method 'setParameter' error.
SyBer
  • 5,407
  • 13
  • 55
  • 64
3
votes
3 answers

libgdx's http request method doesn't work on the web application

I'm testing the net class of libgdx library to get a json from the page passed to the setUrl method. This portion of code comes from a class called ApplicationScreen that implements the libgdx Screen interface. That's the code: @Override public…
3
votes
1 answer

WP8 Save file with http request in Background task when the app closes

I would like to store data in the dropbox via http request when the app closes. The time of 10 seconds in the Application_Closing function are not enough. Is there a background task that runs longer after closing the app? Thank you
3
votes
2 answers

iOS - sending a webrequest fails within exception handler

An exception is thrown in my app and I'm trying to handle it here. The intent is to make a call to our sever and this is not successful. I've isolated the server call in a try/catch statement to see if another exception is thrown but as you can see…
Rammeln
  • 168
  • 1
  • 7
3
votes
0 answers

Internet Explorer with Google Chrome Frame - Resources from Amazon CloudFront hang for 2 minutes

CSS and JS resources for my site is hosted on Amazon's CloudFront CDN. The site itself and it's resources are accessed through HTTPS. When browsing the site in Internet Explorer 8 with Google's Chrome Frame plug-in installed, the site takes exactly…
cllpse
  • 21,396
  • 37
  • 131
  • 170
3
votes
1 answer

MIME type for HTTP requests other than form submissions

For requests not sent by HTML forms, does HTTP limit the Content-Type of a request to application/x-www-form-urlencoded for non-file uploads, or is that MIME type "right"/standard/semantically meaningful in any other way? For example, PHP…
Jordan
  • 4,510
  • 7
  • 34
  • 42
3
votes
2 answers

httprequest in android fails and exception is null

I have an HTTP request that throws a null exception. Here's the code: public String updateRounds() { // Create a new HttpClient and Post Header HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new…
orelzion
  • 2,452
  • 4
  • 30
  • 46
3
votes
3 answers

Perl: Getting complete request from SOAP::WSDL object

I'm working with SOAP::WSDL and another company's custom WSDL file. Every time they make a change for me and I recreate my modules, something breaks. Finding the problem is rather tedious because I don't find a proper way to access the actual…
simbabque
  • 53,749
  • 8
  • 73
  • 136
3
votes
2 answers

HTTP POST request ANDROID 4 (working in 2.3)?

Ok so, here is the deal, I've coded an app that requests via HTTP (post) data from a web url, the data is returned using JSon arrays and i parse those arrays to get what i want. Up until there there's no problem using android 2.3.x but when i test…
2
votes
1 answer

Python Requests Module Put issue

I'm having issues sending a put using the requests module. I have been able to do a get successfully and using a Advanced Rest Client for Chrome I have verified my payload is correct. However, I get a generic error saying I send a bad request. I am…
rjbez
  • 802
  • 2
  • 12
  • 21
2
votes
2 answers

Breaking On/Viewing/Modifying Request Headers before they are sent using Google Chrome

I've been searching for a while now and can't seem to find an answer to my question. I want to be able to set some kind of a break point in Google Chrome directly before a request is sent, allowing me to see and modify the request from the browser…
jnadro52
  • 3,454
  • 3
  • 21
  • 17