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
0
votes
1 answer

HttpUriRequest#addHeader(...) is eradicating my entity

I'm talking to a webservice in Android using basic auth. This means I am sending a header looking like Authorization Basic [user:pass base 64 string here] I'm setting up my request thus: public CreateUserService(Intent intent, int id) throws…
Andrew Wyld
  • 7,133
  • 7
  • 54
  • 96
0
votes
1 answer

Catching all requests mvc 4

I have a folder with resources and I'd like to give opportunity to all users with right token get access it.Requests like: www.mysite.com/uploads/images?token = some security value So I need to handle all requests that starts with …
NET
  • 289
  • 3
  • 6
  • 13
0
votes
2 answers

An error occurred while receiving the HTTP response,when returning large amount of records(about 20000 or more)

Problem: I have one function which return large amount of record in terms of list, so while getting this record,following exception is thrown. The details of exception & stack trace are mentioned bellow: Exception: An error occurred while receiving…
user1746468
  • 75
  • 2
  • 11
0
votes
1 answer

Using Cypher (Neo4j) within a REST API request (Objective C)

I am trying to query my Neo4j database, using the REST API. I have this working so far without using the Cypher query language to retrieve data, however, now I need to get nodes which are sorted by 'newest' i.e. unix timestamp DESC. I have tried to…
Adam Carter
  • 4,741
  • 5
  • 42
  • 103
0
votes
3 answers

Displaying Notification after Background Process done Android

I am loading an HTTP request in the background using loopj HTTP CLIENT and when it is done, I want to display a "success" notification (dialog, toast, etc.) I have the code in a seperate (non-activity) class with a static method that executes the…
Kgrover
  • 2,106
  • 2
  • 36
  • 54
0
votes
2 answers

Getting an error "Cannot make a static reference to the non-static method setEntity(HttpEntity) from the type HttpEntityEnclosingRequestBase"

I'm creating an activity of an android app where the user fills his details (identified by id's name, bhawan, room, mobile, books etc) and these values are to be transferred directly to the Google spreadsheet. It gives me that weird error. Can you…
0
votes
3 answers

NodeJS 'http' object is supposed to have a method called get() but where is it?

I would like to see in my console either "Got response" or "Got error". I've been trying to perform an HTTP request using http.get() but I get the following error when I try. D:\wamp\www\Chat\server\test.js:19 http.get("http://google.com",…
Joncom
  • 1,985
  • 1
  • 18
  • 29
0
votes
1 answer

Taking an HTTP Request parameter in Spring MVC

I have a problem taking a parameter of an HTTP request in Spring MVC. In my view I have the following link:
  • ">(PERSONALE) By path, method, and…
  • AndreaNobili
    • 40,955
    • 107
    • 324
    • 596
    0
    votes
    1 answer

    Android really long execution time of HTTP request

    i have a problem in my app. At start i will describe how it works. It send request to the server (which wasn't created by me), and in the response i am getting JSON string ( it's not so big average 10 records in JSONarray) there in one parameter…
    Mithrand1r
    • 2,313
    • 9
    • 37
    • 76
    0
    votes
    3 answers

    Openfire MUC Through HTTP Requests

    I've been searching high and low for a plugin that handles MUC administration through HTTP requests for Openfire. I've looked in the plugins and even in the community pages but I've had no luck so far. Is there a plugin for this? Where can I find…
    Vincent Paca
    • 497
    • 3
    • 11
    0
    votes
    3 answers

    Android getting text from a URL always NULL

    I'd like to send an http request and get a string back from that request. I am currently using this code, but no matter what my URL is, I always get null. What's the issue? try { // Create a URL for the desired page URL url = new…
    user1319668
    • 329
    • 1
    • 4
    • 16
    0
    votes
    2 answers

    Flex Mobile HTTP Request Error on apk file

    I'm developing an android application using Flex Builder 4.6. It's fairly complicated app and I'm using HTTPService for communication with the server. It was working fine until recently it stops working after making the apk file. So From desktop…
    iamshahid
    • 469
    • 1
    • 3
    • 9
    0
    votes
    1 answer

    Android - execute http request when connection is reestablished

    Iy Android application when user clicks logout button I need to send a http request that unregisters that user from push notification service. The user might click that button when there's no internet connection. In such case user should be logged…
    mgamer
    • 13,580
    • 25
    • 87
    • 145
    0
    votes
    3 answers

    Django python - how to put all HttpResponses through a function

    I have urls.py which routes a HttpRequest to a particular view function. These view functions all return a dictionary object. How can I pass all these return objects through a function which dumps to Json and wraps in an HttpResponse? Thanks
    user973758
    • 707
    • 1
    • 9
    • 22
    0
    votes
    0 answers

    HTTP_Request_2 :: addPostParameter adds extra characters

    So I'm trying to send a POST request with pear HTTP_Request_2 I'm adding a POST parameter to a request with addPostParameter function $request->addPostParameter(array( 'lgname'=>'Admin', …
    bravik
    • 433
    • 7
    • 17