http2

Is there a way to force an XMLHttpRequest to use HTTP/1.1?

三世轮回 提交于 2020-01-25 09:37:06
问题 I have a server endpoint that supports both HTTP/1.1 and HTTP2. For testing purposes, I want to try downloading content from the endpoint with both HTTP/1.1 and HTTP2 connections, possibly at the same time. When I request data from the endpoint with an XMLHttpRequest, it automatically uses HTTP2, without me including the Connection: Upgrade header. Is there a way to force an XMLHttpRequest to use HTTP/1.1 for the underlying TCP connection? What about other protocols, such as Quic or SPDY? 回答1

How to upgrade Istio Service Mesh from http to http2?

穿精又带淫゛_ 提交于 2020-01-24 20:53:05
问题 We are on Kubernetes and use Istio Service Mesh. Currently, there is SSL Termination for HTTPS in Gateway. I see in the istio-proxy logs that the HTTP protocol is HTTP 1.1. I want to upgrade HTTP 1.1 to HTTP2 due to its various advantages. Clients should call our services HTTP2 over SSL/TLS. I am using this blog for an internal demo on this topic. These are the bottlenecks: 1) I want to propose a plan which will causes least amount of changes. I understand I need to update the Gateway from

HTTP2 request sample crashes with Jmeter4, Java 10 No Client ALPNProcessors

旧巷老猫 提交于 2020-01-24 05:20:31
问题 I am unable to create a HTTP2 request using Jmeter 4.0. I have installed latest JDK, and HTTP/2 protocol sampler plugin. I have also observed that: "penJDK8ClientALPNProcessor@e23ec5a not applicable for java 10.0.2" Tried using Java 9, but I get the same thing. PS: I already tried adding the JVM_ARGS=... Complete stack-trace is: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: No Client ALPNProcessors! at org.eclipse.jetty.util.FuturePromise.get(FuturePromise.java:138

How to force HTTP/1.1 in specific AJAX request

試著忘記壹切 提交于 2020-01-21 08:16:47
问题 Background: our server supports both HTTP/2 and HTTP/1.1 protocols. However, during tests, it appeared that HTTP/1.1 is much faster for files upload. Example of that issue could be also seen here: Slow GCS upload speeds when using HTTP/2 Question: is it possible to force browser to make HTTP/1.1 AJAX request only for certain url/path? Internally we're using Axios (https://github.com/axios/axios). 回答1: No this is not possible. HTTP/2 is a connection level setting that is negotiated by the

How to force HTTP/1.1 in specific AJAX request

余生长醉 提交于 2020-01-21 08:16:06
问题 Background: our server supports both HTTP/2 and HTTP/1.1 protocols. However, during tests, it appeared that HTTP/1.1 is much faster for files upload. Example of that issue could be also seen here: Slow GCS upload speeds when using HTTP/2 Question: is it possible to force browser to make HTTP/1.1 AJAX request only for certain url/path? Internally we're using Axios (https://github.com/axios/axios). 回答1: No this is not possible. HTTP/2 is a connection level setting that is negotiated by the

Must I use HTTP/2.0 to send Apple Push Notifications? May I use libcurl?

家住魔仙堡 提交于 2020-01-13 08:51:06
问题 This question, as you may have inferred from the title, is really two questions in one. First Question: Must I use HTTP/2.0 to send Apple Push Notifications? On the APNs Provider API documentation provided by Apple, the opening paragraphs specify: The provider API is based on the HTTP/2 network protocol. There are several other references to HTTP/2.0 throughout the documentation. However I don't see (which is not to say it's not there) anything specifying that HTTP/2.0 must be used. Does this

HTTP 2 request in python 2.7

别等时光非礼了梦想. 提交于 2020-01-13 08:41:12
问题 Is there any difference in making request to HTTP/1 and HTTP/2 in python. I can make HTTP/1.x calls in python like url = 'http://someURL' values = {'param1' : 'key', 'param2' : 'key2'} data = urllib.urlencode(values) print data req = urllib2.Request(url, data) response = urllib2.urlopen(req) the_page = response.read() print the_page Is python supporting making HTTP/2 by default or should I add anything extra. 回答1: As others mentioned in the comments to the question the requests library does

HTTP 2 request in python 2.7

与世无争的帅哥 提交于 2020-01-13 08:41:06
问题 Is there any difference in making request to HTTP/1 and HTTP/2 in python. I can make HTTP/1.x calls in python like url = 'http://someURL' values = {'param1' : 'key', 'param2' : 'key2'} data = urllib.urlencode(values) print data req = urllib2.Request(url, data) response = urllib2.urlopen(req) the_page = response.read() print the_page Is python supporting making HTTP/2 by default or should I add anything extra. 回答1: As others mentioned in the comments to the question the requests library does

Slow GCS upload speeds when using HTTP/2

拜拜、爱过 提交于 2020-01-13 06:05:53
问题 Context: We are uploading files directly to GCS from a web-interface via AJAX calls using a parallel composite upload approach. While running tests in different scenarios we noticed that on some networks the upload speed is capped around 50Mbps even though on all of them the bandwidth is between 100Mbps and 1Gbps. We ran gsutils perfdiag inside one of the "troubled" networks in order to emulate the web-interface upload approach and got significantly better performances. When comparing the

How to detect if the visitor is using HTTP/2 or SPDY

点点圈 提交于 2020-01-13 03:53:06
问题 Hi guys I am searching for a script which can detect if the visitor's browser has enabled SPDY or HTTP/2. Something like this https://www.ist-http2-aktiviert.de/ 回答1: Theoretically, once nextHopProtocol lands in ResourceTiming and NavigationTiming, you should be able to detect h2 support for the root page and other resources. As of 2016-06-06, nextHopProtocol is only available in Firefox's ResourceTiming implementation. It is not available in their NavigationTiming, or in either