Questions tagged [http-1.0]

30 questions
292
votes
7 answers

HTTP 1.0 vs 1.1

Could somebody give me a brief overview of the differences between HTTP 1.0 and HTTP 1.1? I've spent some time with both of the RFCs, but haven't been able to pull out a lot of difference between them. Wikipedia says this: HTTP/1.1…
Jason Baker
  • 192,085
  • 135
  • 376
  • 510
19
votes
1 answer

Why is Connection: keep-alive still being specified in http headers (isn't it deprecated)?

According to "HTTP: The Definitive Guide", using Connection: keep-alive to specify a persistent connection is deprecated in HTTP/1.1, since HTTP/1.1 specifies that connections are persistent by default and must be closed manually by sending…
capdigi
  • 203
  • 1
  • 2
  • 5
14
votes
3 answers

Serving HTTP/1.0 responses with Node.JS (unknown content length, chunked transfer encoding)

The Problem I am serving a resource of unknown length via Node.JS. Because of this, the Content-Length header cannot be set. For HTTP 1.1, it is required that chunked encoding is used for resources of this nature. Node.JS knows this and sends my…
Brad
  • 159,648
  • 54
  • 349
  • 530
13
votes
1 answer

How do I find out the version of HTTP in a request using PHP and Apache

I need to determine whether an HTTP request was an HTTP/1.0 or an HTTP/1.1 request in my PHP script, which is running under Apache. Is there a way to query this information?
nohat
  • 7,113
  • 10
  • 40
  • 43
8
votes
1 answer

why between nginx/nginx upstream use http/1.0?

I have 3 server: A(nginx)-->B(nginx)-->C(nodejs), When i access A or B,chrome use http/1.1+keepalive by default. I do not set "proxy_http_version 1.1;" and proxy_set_header Connection ""; But between A and B,NGINX use http/1.0 by default。That is…
monkey
  • 83
  • 1
  • 1
  • 5
7
votes
1 answer

how to create a HTTP-1.0 request by net.socket or http.request?

I want to create a HTTP-1.0 request by net.socket or http.request but I have a problem with this code: var http = require('http'); var options = { host:'google.com', method: 'CONNECT', path: 'google.com:80', port: 80 }; var req =…
thename
  • 71
  • 1
  • 2
5
votes
0 answers

Ajax : force HTTP/1.0

About everything is in the title. I need to communicate with a server using HTTP/1.0 I didn't find the attribute or option to do this in xhr.setRequestHeader() Any idead please ? Thank you all !
3
votes
2 answers

Is using HTTP 1.0 bad practice?

I'm implementing a basic http client for communicating with a web service and am wondering if I should go with http 1.0 or 1.1. The data section will consist of binary data and the remote server will always be controlled by me (running IIS7.5). The…
m__
  • 1,721
  • 1
  • 17
  • 30
3
votes
1 answer

HTTP 1.0 request with HTTPoison

How do I make a HTTP/1.0 request with HTTPoison? I don't know which version it's using, but I'm assuming it's not 1.0 by default. I am integrating with some accounting software called MoneyWorks, and they recommend using HTTP/1.0 if possible to…
Peter Brown
  • 50,956
  • 18
  • 113
  • 146
2
votes
3 answers

How to disable HTTP 1.0 protocol in Apache?

HTTP 1.0 has security weakness related to session hijacking. I want to disable it on my web server.
user8079940
2
votes
2 answers

Apache Internal Server Error when posting basic HTTP/1.0 200 OK response in my server? Definitely printing newline

I'm getting an Internal Server error when printing this: This is my code (python): print "HTTP/1.0 200 OK\n\r", print "Content-Type: text/html\n\r", print "\n\r", The error log says: malformed header from script 'bad_req.py': Bad header:…
user4218594
1
vote
2 answers

How to know if a server supports HTTP 1.0

I need to know if a server supports HTTP 1.0. I send this message through a TCP socket: GET / HTTP/1.0 Host: www.example.com The thing is that in sometimes I get a HTTP 1.0 response and other times HTTP 1.1 response. How should I interpret this…
joacoleza
  • 775
  • 1
  • 9
  • 26
1
vote
1 answer

How does the http get request differ from the https request in c?

There was an earlier implementation of get and post http request from C-language POS system to the server. However for reasons of security the server only accepts https on port 443. The implementation has failed to work on port 443 indication http…
acacia
  • 1,375
  • 1
  • 14
  • 40
1
vote
0 answers

sending image over HTTP1.0 only half of image sent

I am doing a class project right now and it requires me to send data and image using socket. So far I have finished most of it. Data gets sent correctly, small images get sent correctly, but when it comes to large images, only half of it is shown. I…
santoki3
  • 83
  • 1
  • 7
1
vote
1 answer

WSO2 ESB FORCE_HTTP_1.0 not working

I'm trying to force the WSO2 to set the http version to 1.0 because the client of a service requires the Content-Length property. I configured the following properties in the outSequence, before the :
elias
  • 15,010
  • 4
  • 40
  • 65
1
2