Access my QUIC server from browser

1,288 views
Skip to first unread message

Akhil Shashidhar

unread,
Jul 22, 2014, 5:18:08 PM7/22/14
to proto...@chromium.org
Hi:

I built the prototype QUIC server and am running it on my amazon micro instance. I am able to access server from QUIC_client, which I am running on uBuntu VM on my laptop. Now, my question is how do I access this from chrome browser ? In fact I want to access it from my Nexus-5's chrome browser (even if I have to install a beta version or build and install apk, am OK with it).

I really appreciate any pointer which helps me get answers to my questions.

Thank you,
Akhil

Alyssa (Rzeszutek) Wilk

unread,
Jul 23, 2014, 12:46:04 PM7/23/14
to proto...@chromium.org
If you want to force QUIC on to a server which only speaks QUIC, you should be able to adapt the instructions on the QUIC FAQ  http://www.chromium.org/quic/quic-faq#TOC-How-do-I-aim-Chrome-at-the-test-server- to point to your micro instance.

Before you do this, I'd highly suggest testing that you are configured correctly and can speak QUIC by using the quic_client first locally on your micro instance and second on your laptop.  

cheers,

Alyssa


--
You received this message because you are subscribed to the Google Groups "QUIC Prototype Protocol Discussion group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to proto-quic+...@chromium.org.
To post to this group, send email to proto...@chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Akhil

unread,
Jul 23, 2014, 12:59:15 PM7/23/14
to proto...@chromium.org
Thanks Alyssa. This is exactly what I was looking for. I wanted to force the FIRST REQUEST to QUIC server.

I was about to fall-back on another approach (link below). It requires me to configure a HTTP/TCP server on QUIC server machine and respond to the first HTTP request with "quic-supported" HTTP header.


- Akhil

Akhil

unread,
Jul 24, 2014, 5:48:39 PM7/24/14
to proto...@chromium.org
Hi Alyssa:

Is there a way I can set "--origin-to-force-quic-on" without launching chrome from command line?
I want to set this on my mobile phone running chrome.

Thanks,
Akhil

- Akhil

Wesley Davison

unread,
Jul 27, 2014, 4:38:30 PM7/27/14
to proto-quic
Hi, Akhill,

As far as I know, you will need to change the preamble of the files that will be in the cache folder. The QUIC server, until I could find, read these preamble to configure their "cache structure". 

In my experiments, in order to access the QUIC server using chrome at localhost, I needed to do the following steps:
  1. add, at the beginning of the index.html, the string "X-Original-Url: http://localhost/index.html";
  2. execute chrome with the "enable-quic" and "origin-to-force-quic-on" (e.g. ./chrome --enable-quic --origin-to-force-quic-on=localhost:6121);
  3. execute QUIC server (e.g. ./quic_server --quic_in_memory_cache_dir=<path-to-index-folder>).
after this, I could access it, typing "http://localhost/index.html" in the browser.

Based on this, in my opinion, you will just need to add the "X-Original-Url: http://<ip-of-amazon-server>/index.html" at the beginning of your index.html file.

If these information does not solve your problem, we can try to find other solutions.

BR,
Davison


--
Reply all
Reply to author
Forward
0 new messages