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

How-to correctly make a Parse.com Parse.Cloud.httpRequest from the client-side?

I'd like to make a http request from my cloudcode that gets called on my clientside.
user4297677
2
votes
2 answers

php http_get function never returns

When I call http_get it never returns, my WEB page just stops outputting at that point. The destination URL never gets the request.
Mike Higgins
  • 151
  • 5
2
votes
1 answer

How do I use JSON in the body of an http PUT in node.js?

See my code below. I am trying to send { "status" : "accepted" } in the body of my request. The error I keep getting back from the API on their end is: {"message":"Unable to parse JSON in request body.","code":"invalid_json"} I can make this work in…
Nathan McKaskle
  • 2,926
  • 12
  • 55
  • 93
2
votes
0 answers

Copying HttpServletRequest of one client to bodyof HttpServletResponse of another client

I need to copy the HttpServletRequest of client1, as it is, to the HttpServletResponse object created for client2. According to this HttpRequest has a ResuestLine, then headers, then body. I have copied the headers like this : Enumeration
shalakha
  • 159
  • 2
  • 9
2
votes
3 answers

Perform HTTP requests using cookies from webview

I have this scenario which my app shows in a webView a 2-page login process. The first page asks only to which domain to you plan on connecting. The second page asks for the credentials. I'm trying to perform the login in the webView and then…
Bended
  • 494
  • 1
  • 7
  • 22
2
votes
0 answers

What is the optimum way to balance between http request (Payload) and server load (processing)?

This is the program flow for loyalty program for my mobile app. The mobile app has voucher information already downloaded from the server. Now when user wants to redeem the voucher there is two approaches Approach 1 and Approach 2 as illustrated in…
Prajeet Shrestha
  • 7,978
  • 3
  • 34
  • 63
2
votes
1 answer

How to add different time delays between page requests in JMeter?

I've a JMeter Script that does the following: User registers to the site filling out a form with personal information Reads through Terms, Condition and agrees to the Agreement Reads through the instructions and answers practice questions before…
Ishtiaque Hussain
  • 383
  • 1
  • 5
  • 20
2
votes
2 answers

python says http-response code is 200, but server says 301

I'm using python 3's urllib.request.urlopen() function. In the past it has worked fine. In fact, I used it a few month's ago for the same program and it worked fine. Now however, the server is logging 301 responses whenever I try to use an api to…
user2549327
2
votes
1 answer

JMeter - Multiple requests at the same time but with different values

Can someone shed some light on how to structure JMeeter for the requirement below: I have to send two requests. Send request and get some data back. This is not for performance test, but just to get the data. From the values, lets call it…
Kevin Rave
  • 13,876
  • 35
  • 109
  • 173
2
votes
2 answers

The loopj android-async-http request sometimes didn't response at all

I'm using this library to request from my web services. It didn't response at all in onSuccess and onFailure sometimes (these are the only two methods I overrides). I tested under 1.4.4 and 1.4.5 (android-async-http-1.4.5-20131110.125018-1, this one…
Bagusflyer
  • 12,675
  • 21
  • 96
  • 179
2
votes
0 answers

How to get the sender id or sender name(url, uri, ect..) of soap request in ServletFilter?

I'm implementing web services, there are a client and many web services in the system. Here is my scenario, a client invokes web service A (so it sends the soap request to A) in order to satisfy the client's request, A needs to invokes another web…
N87UW
  • 21
  • 4
2
votes
1 answer

Optimise javascript and css requests for wordpress plugins

I'm building several WordPress themes in which I like to use a number of plugins like Jetpack and Gravity Forms, unfortunately they add a number of extra javascript and css requests to the site. Which causes a fair amount of added loading time to…
GibsonFX
  • 1,000
  • 2
  • 10
  • 33
2
votes
1 answer

requestHeaders in http-conduit-1.9.4

I'm trying to create http request with custom header (with http-conduit-1.9.4 usage): req <- parse "https://some_url" let request = req { requestHeaders = [customHeader] } And I don't understant what should be customHeader? I have tried import…
erthalion
  • 3,094
  • 2
  • 21
  • 28
2
votes
0 answers

Automated Test Run - Python HTTPResponseNotReady()

I am trying to create an automated test using python for testing a youtube API request and response and all of those happening in random quick timely manner. What I have been getting is an unstable HTTP response from the server. I am not using the…
saruberoz
  • 136
  • 1
  • 2
  • 6
2
votes
1 answer

How to set http body request efficiently?

in my app, I'm currently sending http requests from each viewcontroller. However, currently I'm implementing one class, that is supposed to have method for sending requests. My requests vary in number of parameters. For example, to get list of…
Yanchi
  • 1,030
  • 1
  • 20
  • 31