Questions tagged as 'http'

2
answers

Is there a maximum size limit for an HTML page?

   Note: This question is not about code optimization. It is well known that browsers have a size limit for a URI. Is there any kind of limit for requesting / rendering an HTML file? Given a simple example, let's say an HTML page genera...
asked by 28.12.2015 / 09:08
1
answer

How do sessions work at HTTP level?

I came across this question recently and did not find much about it in web . I'm used to working (and reading) about session in PHP , but I never stopped to think how they would be at HTTP level, someone would you know something about?...
asked by 20.11.2017 / 13:07
2
answers

What status code to use when there is no bank record to return in an HTTP request?

I have an endpoint that returns a list of products. So, if there's any data in this list, I'll set the HTTP status code to 200, and if it does not, I just return a json saying that no record was found and the status code of HTTP 200. My en...
asked by 12.06.2017 / 00:40
1
answer

What does this definition of resource really mean?

I'm studying about web APIs and REST and the book I'm reading says the following:    The Web is built around three main concepts: features, URIs, and representations.       A resource is anything that has a URI. A feature itself is a concept...
asked by 31.01.2015 / 03:11
2
answers

How to define a header with a JWT token in a request made by the Requests library?

I am using the Requests Python library to make HTTP requests. I was able to make a post request quietly in order to get a JWT token. But now I need to send this token through a header, but I have no idea how to do it. The code I cur...
asked by 27.10.2016 / 13:58
2
answers

Doubt regarding the https protocol

I'm setting up an Apache server in Debian. When I access https://.../index.php from Chrome, I get the following result: Somyquestionsare:Toappear: DoInecessarilyneedapaidcertificate,oristhereanotherpath? In order to not display th...
asked by 03.08.2017 / 18:17
0
answers

FFmpeg error with video stream

I'm trying to make a stream using a webcam as data input with FFmpeg, but I need it to record a video in addition to the stream. Both features with the same command for a few minutes. (If placed separately the code of the recording works perf...
asked by 09.11.2017 / 15:47
3
answers

What can cause file_get_contents to give a "timeout" error?

I asked this question here , but hardly, for being a problem that seems to be specific, the solution would be something that would be something generic. But it occurred to me in this question that I asked is that I'm having problems with the...
asked by 13.01.2017 / 12:26
1
answer

Which HTTP methods use payload?

I am monitoring the services of my company and need this information to continue.     
asked by 10.08.2016 / 20:02
1
answer

HTTP Error 500 using HttpWebRequest

I come here to ask for help regarding HttpWebRequest requests. I need to get the html return from an HTTP 500 error (HTTP / 1.1 500 Internal Server Error). Could someone tell me how it could be done? Below is an example of a HttpWebRequest reque...
asked by 18.08.2015 / 20:39