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

Using python requests library to login to website

I have looked through many SO threads on how to create a session using the requests library, but none of the methods I tried actually log me in. I have very little experience with web design and protocols, so please point out any basics that I might…
sebo
  • 1,584
  • 4
  • 16
  • 19
4
votes
1 answer

Accessing the raw http request in MVC4

There are a lot of questions about accessing the HttpRequest on stackoverflow already, but I have not been able to find one that I can use yet. If somebody could point me to an answer I would be grateful. My problem is that I want to modify an…
sa555
  • 320
  • 1
  • 4
  • 12
4
votes
2 answers

How should an application authenticate with a datastore?

I'm writing an iPad game that sends hi-score type data (ie data beyond what Game Center supports) to a Google appengine datastore. It sends these updates via http GET or POST requests, such as http://myapp.appspot.com/game/hiscore/925818 Here is…
bobobobo
  • 64,917
  • 62
  • 258
  • 363
4
votes
1 answer

Example on how to do asynchronous http get request using cpp-netlib

I'm trying to do asynchronous http requests using cpp-netlib. I couldn't find any examples of this in the documentation, as a result can't even get it to compile. My current attempt is below (with compilation errors in the comments). Any hints how…
Arman
  • 1,074
  • 3
  • 20
  • 40
4
votes
1 answer

How can I increase the allowed size of HTTP GET requests on dotcloud?

I am doing some JSONP calls which limit me to HTTP GET as the method of talking to the server. I seem to be hitting an 8k limit on the size of the request. I have tried changing my dotcloud.yml to www: type: perl approot: webapp config: …
Chas. Owens
  • 64,182
  • 22
  • 135
  • 226
4
votes
3 answers

how to make https request using php Http_Request2()

i want to make a https request using pear http_request2($url) class. i am able to make http request but not https. and the website facilitate both http and https. No prob with server responding to https. require 'HTTP/Request2.php'; $url =…
Necktwi
  • 2,483
  • 7
  • 39
  • 62
3
votes
0 answers

best way to handle frequent HTTP POST request from iPad app

In my app for iPad, I have a requirement that I have to post some data almost after each 30 sec. So for that I'm creating a new http request every time and adding the request to a queue. Is there any other efficient way to do so?
Jitendra Singh
  • 2,103
  • 3
  • 17
  • 26
3
votes
1 answer

Selenium/webdriver network monitoring

I am looking for a way to monitor and record all requests that a browser makes while being used by selenium/webdriver to test a page. Something like the network pane in chrome developer tools.
Daniel Iankov
  • 306
  • 3
  • 7
3
votes
4 answers

Catch back() JavaScript

I'm creating a homepage. The content of the page is only get by HTTP-Request. So that the Client never change the page-url. How can I catch the back() function from the Browser to go one step back in my HTTP-Request. The automaticly creating of…
PageCreator
  • 41
  • 1
  • 4
3
votes
2 answers

Http request inside a loop

I'm having some troubles in making a HTTP request inside a loop. Let me explain what I have.... I make an http GET to retrieve some values and then I need to make another HTTP GET for each couple of values that I've just taken from the first…
Mirko
  • 137
  • 1
  • 2
  • 14
3
votes
2 answers

Logging Into Site Using Javascript HTTP Request?

I'm attempting to log into my nike account using http requests and parse. Here's my request: Parse.Cloud.httpRequest({ method: 'POST', headers: { 'Content-Type' : 'application/x-www-form-urlencoded; charset=UTF-8' }, …
3
votes
1 answer

How to determine Content Type of a HTTP Servlet Request?

How can I get the content type from the HttpServletRequest without reading the request body? When I use the following, I get null: request.getContentType() When I try to read the JSON data that comes in the request body using the…
yathirigan
  • 5,619
  • 22
  • 66
  • 104
3
votes
1 answer

http header request times out on server

I am trying to use a sms gateway app for android called SMSGateway with a http header request using curl as below; $curl_handle=curl_init(); curl_setopt($curl_handle,…
3
votes
0 answers

DEPTH_ZERO_SELF_SIGNED_CERT error when using http-request module

I use http-request nodejs module to send a get request by the following code scippet http.get({ url: 'https://xxx.yyy', rejectUnauthorized: false, headers: {'Authorization':'xxxxxwdw'} }, function (err, res) { if (err) { …
Kevingo Tsai
  • 629
  • 7
  • 21