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
1
vote
0 answers

404 Not Found when try getting OAuth2 access token in spring application

I am trying to make a web application that we can get an access token in 'password' grant type by just call some http basic request For example When I call…
OsYYYY
  • 243
  • 3
  • 14
1
vote
0 answers

HTTP request in For loop, Low Memory and Crashed

I need to send a large amount of HTTP request in a for loop, and once I finish a task, I need to update progress on main thread. float __block progress = 0.0f; float __block tempValue = 0.0f; dispatch_queue_t operationQueue =…
FrankA7
  • 11
  • 4
1
vote
1 answer

How come Catalyst::Controller::WrapCGI doesn't get any post data?

Whenever I POST something to a page with Catalyst::Controller::WrapCGI I notice that my old CGI script doesn't get any POST data.. Data inside the body of the HTTP request. What am I doing wrong and how do I fix this?
Evan Carroll
  • 78,363
  • 46
  • 261
  • 468
1
vote
3 answers

Reading Result from HTTP Request in Android

I need to read the response message retrieved after connecting to an online PHP script. This script returns the following: {"success":1,"innerResult":[{"username":"raafat","password":"123"}]} I just need to read the success value from this message.…
Rabah Hamzah
  • 125
  • 1
  • 9
1
vote
1 answer

Ruby posting a HTTP request with arrays using Net::HTTP.post_form

I am trying to translate the following PHP script into Ruby in order to communicate with a web API. Unfortunately I don't seem to be able to pass the 'recipients' array in the correct way as it is not interpreted correctly by the API. Passing the…
user1814735
  • 261
  • 1
  • 2
  • 5
1
vote
1 answer

Java - NoHttpResponseException when using apache fluent api to post

I am continuously posting data to server using Java with Apache fluent api. Content content = Request.Post(URL) .bodyForm(param) .execute() .returnContent(); The above works perfectly but after some random execution time I am getting…
Ajeet
  • 1,540
  • 1
  • 17
  • 30
1
vote
1 answer

PHP parse PUT request

I've spent hours trying to get PHP to parse a PUT request into key/value pairs. The request is coming out of Ember Data and is of type form-data and I can't change that (Ember Data doesn't allow that as far as I know). I don't want to install a PHP…
Drew Baker
  • 14,154
  • 15
  • 58
  • 97
1
vote
2 answers

Error sending HTTP request. Message payload is of type: LinkedHashMap [MULE ESB]

I'm new in MULE ESB, I have this code and i'm trying sending a http request using http:request with the following format: "http: //www.host.com/api/commentThreads?key=val&part=val2&..."
Carlos Laspina
  • 2,013
  • 4
  • 27
  • 44
1
vote
1 answer

Why not successful “ HTTP GET request with socket ”?

I want to send GET message at my Android application. After I want to receive GET response as 200 OK. But I didn't accomplish. I received 408 Request Time-outDate or nothing. Can you help me? String requestmsg = "GET / HTTP/1.1\r\n"; requestmsg +=…
FatihCeng
  • 37
  • 7
1
vote
1 answer

Parse Cloud httpRequest Stripe Subscriptions at_period_end param

Having trouble getting the format right with Parse.Cloud.httpRequest for deleting a subscription at_period_end. I am able to successfully make this request with PostMan using x-www-form-urlencoded, key 'at_period_end' value true. (Can't post a…
1
vote
1 answer

Make parallel libcurl HTTP requests

I have a question regarding the safety of performing parallel HTTP-requests using libcurl (C++). When reading this question, please bear in mind I have limited knowledge about HTTP-requests in general. Basically, let's say I have two (or more)…
jensa
  • 2,792
  • 2
  • 21
  • 36
1
vote
1 answer

HTTP_Request call works in browser, timeout in web app

I have a web application which gets data from itself via a REST API in JSON format. I am in the process of moving this site to a new server on a new host. I have everything moved, same database, same files. The main differences would be that PHP is…
claywhipkey
  • 897
  • 8
  • 13
1
vote
1 answer

Nodejs request module doesn't send Authorization header

I need to send GET request on https url with "Authorization" header. I try to do this using this code: request.get({ url: url, headers: { 'Authorization': token, 'abc': 'def' } }) On server side I get "abc" header, but there is no…
Ildar
  • 3,808
  • 7
  • 45
  • 81
1
vote
1 answer

Generally what should I do to respond to a search engine bot request with error format

For example, I have an action which responds to an json ajax request on my site. Recently I found a lot of errors caused by search engine bot request to this endpoint with html request. What's the best practice for dealing with this? Should I just…
larryzhao
  • 3,173
  • 2
  • 40
  • 62
1
vote
2 answers

PHP Pear HTTP_Request force to use specified SSL version

I use PHP Pear HTTP_Request class to do http(s) requests from my PHP application. It is this library http://pear.php.net/package/HTTP_Request/docs I want to control what SSL version is used for https requests (SSLv3, tls1 etc). Some part of my…
Roman Gelembjuk
  • 1,797
  • 2
  • 25
  • 50