Questions tagged [httprequest]

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:

7773 questions
2
votes
4 answers

Will combining javascript files help speed up the website in IE8?

PageSpeed and Yslow suggest that to combine javascripts file to reduce HTTPRequest. But this is becuase (I think) pre ie8 browser has no more than 2 serverhost connection. But nowaday, browser has 6 serverhost connections, which means it has…
2
votes
2 answers

How can i use post request in pecl_http library

hotelbeds api The api required to use post request with some fields, but i don't know where are the fields will be added!! ( in GET request i add the fields in the url like any request ) the api code ` $apiKey =…
TheGeeky
  • 962
  • 1
  • 12
  • 34
2
votes
1 answer

How do I use RestSharp to POST a login and password to an API?

I'm trying to write a C# application that will call an api for Pacer.gov. First thing I need to do it get a cookie to pass with my request. I'm using Chrome's Postman app to try to generate a POST request. Can someone explain what I'm doing…
boilers222
  • 1,901
  • 7
  • 33
  • 71
2
votes
2 answers

Retrieving http response using spray and futures with timeout

I am trying figure out the best way to retrieve the contents from a GET http request with using a timeout. I spent a good amount of time trying to figure out the best approach, but I am a little unsure. Basically I just want to have an option that…
tigga4392
  • 111
  • 1
  • 5
2
votes
1 answer

Request.Url return localhost without domain

I am developing an asp.net web site with Visual Studio 2012. When I run the web application with Visual Studio, I use "http://localhost-si.mydomain.fr:65525" When I do a debug, the property Request.Url return me…
biyoann
  • 21
  • 2
2
votes
1 answer

How does JSON data get sent in an http request?

Let's say I'm making the http request below, to update some record in a mongoDB database: PUT http://dev.mycompany.co/ping {"id":4432, "name":"Jane Doe", "products":[ {"id":287}, {"id":434} ] } Notice that there is an array of two objects inside…
Max
  • 808
  • 11
  • 25
2
votes
2 answers

Invalid operation during the http request

I'm writing a windows forms app where user have to enter email address and I need to check if it's valid. I have found Mashape API but I get an exception; "An unhandled exception of type 'System.InvalidOperationException' occurred in…
Laguland
  • 65
  • 1
  • 7
2
votes
0 answers

How to get the exact response time of http request when using Java multi-threads

I am building a program that tries to simulate real clients request to measure the "quality" of the service. I am trying to measure the maximum acceptable number of clients. In other words, how many clients my webserver is able to service at same…
2
votes
2 answers

Cannot process android post request to server and receive result back to android

I have research on this about how to post a request and receive response from server concurrently which I finally got to some reasonable walk-through but it is not working. Please kindly help. button.setOnClickListener(new…
Webln
  • 297
  • 3
  • 10
2
votes
1 answer

Parsing erroneous server responses in Meteor

We are developing a Meteor app which is calling in-house made RESTful API. Our server expects that "Content-type: application/json" header is set and it always responds with same header (Content-Type: application/json; charset=UTF-8) and a…
errata
  • 5,695
  • 10
  • 54
  • 99
2
votes
0 answers

HTTP Put Request With No Payload After 301 Redirect

I recently asked a question involving a put request and the solution was to update the url to be https:// instead of http:// to avoid a redirect wiping out the payload. Specifically, when my code sent out the first put request, it got a response…
mucle6
  • 645
  • 1
  • 10
  • 24
2
votes
2 answers

Is it Possible to use PHP HttpRequest in WAMP?

I am trying to use PHP HttpRequest Class and it seems that it's not installed with WAMP. Is it possible to have this extension available on Windows. I saw somewhere that "a DLL for this PECLis not available at this moment". Can someone confirm if…
Shamim Hafiz - MSFT
  • 21,454
  • 43
  • 116
  • 176
2
votes
1 answer

Swift HTTP request works on the simulator but not in a real device

i created a watchOS app that request a value from an API and show it on a label. It is working perfectly in the simulator but when I execute it on my Apple Watch it crashes with the following error: [ERROR] There is an unspecified error with the…
Gualty
  • 251
  • 1
  • 4
  • 13
2
votes
2 answers

Configure authentication for http requests from web.config file

So I have a bunch of requests that I need to do from c# to a web api and they need basic authentication. I know I can do something like this: var httpWebRequest = (HttpWebRequest)WebRequest.Create("http://url"); String username = "abc"; …
2
votes
0 answers

HTTP response code -1 cocos2dx android

So I'm using cocos2dx's HTTPRequest and here is my sample code: cocos2d::network::HttpRequest * request=new cocos2d::network::HttpRequest(); request->setUrl(strUrl.c_str()); …
cessmestreet
  • 2,298
  • 3
  • 22
  • 42