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

Using ServerXMLHTTP to connect to web service

I have a classic asp file that needs to connect to a web service. I am confused as to how to define the URL for the web service and the Namespace in the SOAPAction. When I run my code and write a Response.Write for the return value of the method…
Gloria Santin
  • 2,066
  • 3
  • 51
  • 124
2
votes
2 answers

Unique, but constant identification of mobile device through PHP

I'm trying to build a piece of PHP script that will uniquely identify a mobile device using the HTTP request sent to the server when the page is called. I know that there is UNIQUE_ID in $_SERVER, however that is a random string generated unique to…
Dexter
  • 795
  • 2
  • 13
  • 27
2
votes
0 answers

Why do I get favicon.ico as http get request?

I'm using laravel 5.2 and I wrote a route like this: Route::group(['middleware' => 'web'], function () { Route::get('/country/{locationName}', ['as' => 'country', 'uses' => 'HomeController@getCountry']); }); Then when I open my…
au6usto
  • 21
  • 2
2
votes
1 answer

AWS Lambda http request: Unable to stringify body as json: Converting circular structure to JSON

I would like to return the result of an HTTP request in my AWS Lambda function: var http = require('http'); exports.someFunction = function(event, context) { var url = "http://router.project-osrm.org/trip?loc=47.95,12.95&loc=47.94,12.94"; …
Chris
  • 13,100
  • 23
  • 79
  • 162
2
votes
1 answer

Load dynamic html with nodejs

I'm pretty new with NodeJs. I'm trying to download some html from a website in order to parse it and present some information for debug. I try with success with http module (see this post), but in this way when I print chunk: var req =…
Luca Davanzo
  • 21,000
  • 15
  • 120
  • 146
2
votes
0 answers

Interesting HTTP request or attack

Some time ago I made a small program like SETI@home to generate the levels of a game that I'm working at. The program has a server and a client. They communicate on a port X using a simple protocol, and they use port 80 when the client is behind a…
Eduard
  • 191
  • 8
2
votes
2 answers

How do I prevent a user from accessing a server's API directly and instead force them to use the UI?

More of a theoretical question, but I'm really curious! I have a two part application: Apache server hosting my UI Back-end that services all http requests from the UI The apache service proxies all http requests from the UI to the server. So,…
2
votes
2 answers

q-io: how to read response.body JSON object using Promises?

I need to make an http request from one server to another server. The server that will handle this request will just return a JSON Array of objects: app.get('/array', function (req, res) { console.log('GET request received!'); var response_array…
charliebrownie
  • 5,777
  • 10
  • 35
  • 55
2
votes
3 answers

How to efficiently store html response to a file in golang

I'm trying to build a crawler in Golang. I'm using net/http library to download the html file from url. I'm trying to save http.resp and http.Header into file. How to convert these two file from their respective format into string so that, it could…
L.fole
  • 687
  • 3
  • 12
  • 19
2
votes
1 answer

Fiddler request to a Python Requests request

(lots of requests in the title, I know) With Fiddler I got a request working. It does exactly what I want. When I try to reproduce it in python, it doesn't work. this is the Fiddler request: POST https://ichthus.zportal.nl/api/v3/oauth/…
Nathan
  • 900
  • 2
  • 10
  • 28
2
votes
2 answers

NSURLConnection validation

I am trying to validate weather the connection was successful but have been getting inconstant results. When I try to do an synchronous request using a bogus url with: NSData *responseData = [NSURLConnection sendSynchronousRequest:request…
jcb344
  • 323
  • 5
  • 16
2
votes
1 answer

Wget Custom File Name

i am using wget in php, i want to give a custom name to response file that i receive . here is my wget code .
Sandra
  • 21
  • 3
2
votes
2 answers

Is there an alternate way of grabbing text from a site that provides no API?

We have a bot for Slack that will take input such as: bible John 3:17 (ESV) This will transform into a call to https://www.biblegateway.com/passage/?search=John+3:17&version=ESV So, what we've done for now is to just grep out the og.description,…
MrDuk
  • 16,578
  • 18
  • 74
  • 133
2
votes
1 answer

How to get the client IP in a dart shelf-rpc server

I have a dart web service application written with Shelf and Rpc apis. I need to check the client Ip inside my api methods, but I cannot figure how. The context method does not contain the HttpRequest .contentInfo property. More, also the shelf…
J F
  • 1,058
  • 2
  • 10
  • 21
2
votes
2 answers

Laravel 5: How to handle nested objects in json request

I just started working on Laravel 5. I am sending json request to my controller. It works fine for simple json. Now I have a scenario where json will be something like this { "orders":[ { "user_id":"1", "product_id":"10" …
Talha Malik
  • 1,509
  • 3
  • 22
  • 44
1 2 3
99
100