-
Notifications
You must be signed in to change notification settings - Fork 651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
优酷PC客户端 #118
Comments
Do you mean this one? http://c.youku.com/pc-client I guess the reason might be the Youku PC client doesn't use the system-wide config for proxy. |
Yes that's the one which wasn't working. It seems talking thru proxy though because i can see the access logs when i run the ub.uku.js.cmd proxy on the same PC. So it may be possible to change the rules in the proxy to let it believe it's connecting from China. |
Don't know why but the program was thrown out BEX errors when I execute it. |
I know at least Sohu PC client works very well with the same setup. I wish I can understand the proxy implementation better to make the Youku PC client works as well. I want to run the PC clients on my HTPC which are much easier to launch and navigate comparing to the one in the browser. But I can live with the web based clients if these are the only ones which are officially supported. Thanks for you both for the excellent solution and input on this topic. |
@chenjhcg Solved the problem of youku pc client on my pc, it is due to DEP function of Wndows The "PC clients ignore the proxy setting" thing can be solve by using proxifier, or by connecting reverse proxy. When PC Clients of other services like tudou, iqiyi, tencent video, letv, sohu are fine as they don't use SSL on serving address. This is first time to see SSL on china video services EXCEPT logging in & out. Here is my rules in proxifier @zhuzhuor HTTP CONNECT method is necesary to tunnel SSL, please consider to add it. |
@karlcheong I will definitely play with Proxifier. One question, in your screen capture under Action column, I kinda understand what Proxy HTTP privoxy means but not sure what is Proxy HTTPs sohu or how to set that up myself. |
sohu & privoxy are user-defined names of proxies. |
@karlcheong 我这两天在搬家有点忙,过几天我看看https的代理 |
@karlcheong 我现在在尝试实现 https 代理(实现 CONNECT method 的部分) 这样的话我们就不能做非常具体的基于 URL pattern 的 access control 了 |
@chenjhcg @karlcheong Please report any bugs/problems here if you see any. |
I have merged all the new code to the master branch, and it will be pushed to the proxy server. |
@zhuzhuor |
@chenjhcg |
@chenjhcg I have tested the unblock node server v1.7.0, it can do the ssl proxy job well. 💯 @redline99cs |
Great news. With a proxifier rule set to force Youku PC client to use proxy server that I run on the same PC with the following command, I can now play at least one video clip which wasn't possible. Will continue trying more to be sure but so far so good.
@karlcheong I set the proxy server type to HTTPS but it failed to pass checking so I changed it to HTTP type it passed. However, Youku client works either with the type set to HTTPS or to HTTP. With server type set to HTTPS, I saw following repeated error messages from both proxifier and ub.uku.js proxy server windows while Youku client is running. I thought you may be interested to see that.
[09.12 14:06:41] YoukuMediaCenter.exe - openapi.youku.com:443 error : Could not connect through proxy ub.uku.js.cmd - Reading proxy replay on a connection request failed with error 10054
12 Sep 14:06:48 - [ub.uku.js] Worker 7120 is now connected to 127.0.0.1:8888 |
@chenjhcg Thanks for your detailed feedback. |
@chenjhcg Per the help file in proxifier 3.21, Working with proxifier -> Proxy Server Settings HTTPS — HTTP proxy with SSL support for arbitrary ports. CONNECT proxy WARNING! Many HTTP proxy servers do not support SSL tunneling; therefore, they cannot be used as HTTPS. If an HTTP proxy works properly in the browser but fails in Proxifier, it most likely means that SSL support is unavailable. You can also check the proxy with the Proxy Checker tool. HTTP — the most common type of proxy servers. Unfortunately, such proxies can only be used for HTTP connections. You can enable this protocol at Profile->Advanced->HTTP Proxy Servers... Please make sure that you have read and understood the HTTP proxy servers topic before using this option! |
For some reason I got issue reloading any Youku videos again. I can't see any video titles showing up for clicking. The client seems unable to reach the Youku server at all. I thought it might be related to the error in server.js I spotted earlier so I went ahead and modified line 333:23 to the one shown below.
With that change, I can at least load the video titles but when I try to play it I see the same error as in my post #1. In ub.uku.js.cmd window, I see following logs which indicate the request is sent to the remote proxy server. [ub.uku.js] 127.0.0.1: CONNECT 61.135.196.99:443 @karlcheong I would like try your node server or the sohu proxy server you mentioned in proxifier to see if that makes any difference. That may help isolate whether the issue is due to the proxy server used by ub.uke.js.cmd. |
@chenjhcg The server-side code is just updated. Please try again to see if you see similar problems. |
@chenjhcg or you can edit the url list, add the follow url: restart the proxy, and it should be good to go. |
#118 workaround, speedup sohu mobile app
Both approaches worked for me. I noticed the page loading is a bit slower now which makes sense since it's going through the china server. |
@chenjhcg In any case, only necessary network traffic/connections are proxied via servers in mainland. |
Maybe this is not the same topic but I also have problem with QQLive PC client. With a rule in Proxifier set for QQLive similar to the screenshot in the earlier @karlcheong post, I can get the client to pass the region check and pass the advertisement but it gets stuck at the following stage. I remember QQLive PC client is a supported client based on comments in some commits so maybe there is a fix to that. |
@chenjhcg In theory, It should work with node server with mitm_proxy even you forward all traffic. @zhuzhuor the server will do 302 redirect to http://14.17.28.161/10263016/6e16ltbhaYe.mp4?sha=74b91b90f5c62614d331a01e186e83a358af14e2&sdtfrom=v2001&vkey=712D22B927D074A5535075EE3763977FBA24ECA86707C5511C3A22B7FBE68EB8 and should connect to the actual video file. May you please check about this? With privoxy with exactly the same forward rule of QQ PC clients, it works pretty well. |
While waiting for update, I would like to try privoxy solution you mentioned, which is from #106 I believe. I assume I need more recent files than those you put on dropbox because there has been multiple changes since then. |
I set up the privoxy just to test it out. The latest config files I can find is from your comment below. With these files neither Youku PC client nor QQLive PC client worked. But both of them worked in Firefox. You mentioned that QQLive PC client works for you with privoxy setup so I assume you have a more up-to-date version of these files. |
@karlcheong But I don't understand the causes for this problem. So the local proxy server and Proxifier should be working fine. |
@chenjhcg Once you extract it, run new.exe, the proxy will listen on 0.0.0.0:8123 |
Both Youku and QQLive PC Clients are working now with the files finally. Thanks guys for your help. I just wonder one thing, the vanilla privoxy server can't load the cnforward.action file due to unsupported sogou-header option on line 15 as shown below.
If I replace it with the line below, the vanilla privoxy.exe loads the file just fine. And QQLive PC client still works afterwards but Youku PC client no longer works. So my guess is that sogou-header{Reason} option is making the difference. I'm just curious to know why. And whether there is a way to get around that with vanilla privoxy.exe.
|
That's a modified version of privoxy 3.0.19 which added support of sogou proxy authentication |
I tried running official version with that line changed to
and then to
But Youku PC client fails to play videos. So I still have no way to make Youku work with official privoxy version. |
Sorry I spoke too soon. The node.js server I ran on my own PC doesn't have latest changes for youku below. Once I added the changes, Youku PC client now works. And I'm sure the @zhuzhuor server should work as well once the changes are included there as well. |
最近研究了下 @karlcheong 的 privoxy 代理方式,一直疑惑
的设定,居然在这个 issue 里找到了。请问 @karlcheong 能介绍下你的 modified version of privoxy 3.0.19 吗? |
@whuhacker source code: https://mega.co.nz/#!tMkTUQ5Y |
@karlcheong Thank you so much. |
@karlcheong |
好像不能用
Same result when setting the proxy http://yo.uku.im/proxy.pac in IE and Firefox.
Works fine when opening the same view in Firefox though.
Maybe PC client works different than the web version and it was able to detect the US IP anyhow.
Sohu PC client works fine however.
Just want to get confirmation whether not supporting Youku PC client is a known limitation.
The text was updated successfully, but these errors were encountered: