titanium-web-proxy icon indicating copy to clipboard operation
titanium-web-proxy copied to clipboard

A cross-platform asynchronous HTTP(S) proxy server in C#.

Results 127 titanium-web-proxy issues
Sort by recently updated
recently updated
newest added

ProxyServer request via another adapter need support for both IpV4 and IpV6

[{"_id":"66433ceb4ecfda50de0ed439","body":"What hinders you from creating actually 2 ProxyServers wihin your app? One for Ipv4 and one for IPv6? Thats what makes the library so powerful, you can very efficiently run and handle 100s of different proxy servers within one app barely consuming any resources....\r\n\r\n```\r\n\r\nProxyServer serverIpv4 = new ProxyServer();\r\nProxyServer serverIpv6 = new ProxyServer();\r\nExplicitProxyEndPoint httpEndpoint = new ExplicitProxyEndPoint(IPAddress.Any, httpPort, false);\r\nExplicitProxyEndPoint httpEndpointV6 = new ExplicitProxyEndPoint(IPAddress.IPv6Any, httpPort, false);\r\nserverIpv4.AddEndPoint(httpEndpoint);\r\nserverIpv6.AddEndPoint(httpEndpointV6);\r\nserverIpv4.UpStreamEndPoint = new IPEndPoint(upStreamIpv4, 0);\r\nserverIpv4.Start(false);\r\nserverIpv6.Start(false);\r\n\r\n```","issue_id":1705932469020,"origin_id":1556219528,"user_origin_id":85971806,"create_time":1684686509,"update_time":1684686524,"id":1715682539638,"updated_at":"2024-05-14T10:28:59.637000Z","created_at":"2024-05-14T10:28:59.637000Z"}] comment

I have 2 network adapters, 1 is LAN adapter and 1 is 4G dongle with Hi-Link support. All internet can access both IpV4 and Ipv6. i was tested my dongle...

Question : How to install certificate for local machine

[{"_id":"66433cf82308c3a903163793","body":"Get the root cert .pfx file, install it via windows crypto snapp-in - install for machine in \"trusted root authorities\". \r\nNow that it's trusted, ensure to load exactly that certificate either by path (or somehow directly via WinCertStore) on app start - and disable overwrite. If overwritten or missing (and thereby rebuilt by the engine) - the trust is useless, as it's a new cert.\r\n\r\nI store my root cert for my apps on a central (readonly) shared folder.\r\n\r\n```\r\n_certificateManager.CertificateEngine = Titanium.Web.Proxy.Network.CertificateEngine.DefaultWindows;\r\n_certificateManager.OverwritePfxFile = false;\r\nbool rootCertLoaded = _certificateManager.LoadRootCertificate(\"pathToCert\", \"rootCertPass\", false, X509KeyStorageFlags.DefaultKeySet);\r\n\r\nif (rootCertLoaded && _certificateManager.IsRootCertificateMachineTrusted()) \r\n{\r\n foreach (var proxyServer in proxyServers)\r\n {\r\n proxyServer.CertificateManager = _certificateManager;\r\n }\r\n}\r\n```\r\n\r\n\r\n","issue_id":1705932469026,"origin_id":1556218586,"user_origin_id":85971806,"create_time":1684686196,"update_time":1684686196,"id":1715682552791,"updated_at":"2024-05-14T10:29:12.790000Z","created_at":"2024-05-14T10:29:12.790000Z"}] comment

Problem: I have used proxy server in a window form app and it will be installed in machine and I am inspecting the traffic and take specific action(s). Every user...

Doneness: - [ ] Build is okay - I made sure that this change is building successfully. - [ ] No Bugs - I made sure that this change is...

The URL parameter with Chinese characters comes to the upstream proxy like this "????"

[{"_id":"66433ce82308c3a903163784","body":"![image](https:\/\/user-images.githubusercontent.com\/7889719\/196268664-6d684c68-974f-4f75-a534-d970d65827a5.png)\r\n","issue_id":1705932469067,"origin_id":1281391362,"user_origin_id":7889719,"create_time":1666036026,"update_time":1666036026,"id":1715682536143,"updated_at":"2024-05-14T10:28:56.143000Z","created_at":"2024-05-14T10:28:56.143000Z"},{"_id":"66433ce82308c3a903163785","body":"Do you change the url (or the query string ) in TWP?\r\nI tried to repducuce the issue, but can't ... however I did not change anything in TWP\r\nchrome => TWP => Fiddler => server works:\r\n\r\nBrowser:\r\n![image](https:\/\/user-images.githubusercontent.com\/7543982\/209474791-92a06c7a-6a52-4a29-9738-ef29e9f300e1.png)\r\n\r\nUpstream Http proxy (Fiddler):\r\n![image](https:\/\/user-images.githubusercontent.com\/7543982\/209474701-3a9102cb-a55c-46a0-bdf1-4e357d8d4130.png)\r\n\r\nSo please specify what did you do in your application. ","issue_id":1705932469067,"origin_id":1364702216,"user_origin_id":7543982,"create_time":1671984016,"update_time":1671984193,"id":1715682536148,"updated_at":"2024-05-14T10:28:56.148000Z","created_at":"2024-05-14T10:28:56.148000Z"},{"_id":"66433ce82308c3a903163786","body":"> Do you change the url (or the query string ) in TWP?\r\n\r\nI changed code url = Request.RequestUri.ToString() to url = Request.RequestUriString; \r\n Request.RequestUri.ToString() got ?systemCode=\u9644\u4ef6\u7cfb\u7edf \r\n Request.RequestUriString got ?systemCode=%E9%99%84%E4%BB%B6%E7%B3%BB%E7%BB%9F\r\nOtherwise, this is what happens:\r\nIn original code TWP v3.2 in HttpWebClient.cs used this method (condition when useUpstreamProxy = true)\r\n\turl = Request.RequestUri.ToString(); \r\nSo this method returned not urlencoded value of url http:\/\/...\/?systemCode=\u9644\u4ef6\u7cfb\u7edf \r\nNext step in method headerBuilder.WriteRequestLine(Request.Method, url, Request.HttpVersion);\r\n\r\n![image](https:\/\/user-images.githubusercontent.com\/7889719\/228186797-6d6cdcc3-5c73-49f2-9675-586b797b3fe8.png)\r\n\r\n![image](https:\/\/user-images.githubusercontent.com\/7889719\/228188012-3f276dd4-e894-4074-9f40-037ea1c20b2f.png)\r\n\r\nAs a result, due to the fact that Request.RequestUri.ToString() returns an unencoded value, when encoding, the result is encoding.GetBytes(str) = \"????\", that is, instead of Chinese characters, since ISO-8859-1 is used, Chinese characters are encoded as the character \"?\"\r\n\r\n\r\n","issue_id":1705932469067,"origin_id":1486513671,"user_origin_id":7889719,"create_time":1679995517,"update_time":1679997672,"id":1715682536153,"updated_at":"2024-05-14T10:28:56.152000Z","created_at":"2024-05-14T10:28:56.152000Z"}] comment

Broken url parameter comes to upstream proxy when use UpStreamHttpProxy and Chinese characters in url params, for example any url with this params: &systemCode=附件系统 or &systemCode=%E9%99%84%E4%BB%B6%E7%B3%BB%E7%BB%9F On the upstream proxy...

Hi team, When I try to login the OneDrive application in windows with business account, I'm getting and error that **_no internet connection_** or **_Couldn't authenticate host 'odc.officeapps.live.com' with certificate...

I'm think if it is possible to use this software as a sidecar in a Kubernetes deployment. A way to achieve this is to receive the request in the transparent...

Hi, I try to add certificate on proxy by using ProxyServer constructor : ProxyServer("certif.pfx","Test",true,true,true). I get this error : System.Exception : 'Could not install certificate as it is null or...

Unhandled Exception in ProxyServer, Couldn't authenticate host 'play.google.com' with certificate '*.google.com'

[{"_id":"66433cec2308c3a90316378c","body":"@honfika , Do we have any updates on this?","issue_id":1705932469134,"origin_id":1409827674,"user_origin_id":83453631,"create_time":1675145769,"update_time":1675145769,"id":1715682540741,"updated_at":"2024-05-14T10:29:00.741000Z","created_at":"2024-05-14T10:29:00.741000Z"}] comment

Hi Team, whenever I debug, I'm getting this error. Could you please guide me to fix this issue? _Unhandled Exception in ProxyServer, Exception = Titanium.Web.Proxy.Exceptions.ProxyConnectException: Couldn't authenticate host 'play.google.com' with...

"Setting system proxy settings are only supported in Windows" while in Windows MAUI App

[{"_id":"66433d0a4a8e87d14e13507b","body":"I had the same problem. I am using Titanium from Powershell. After upgrading from Powershell 7.2.7 (.Net 6) to Powershell 7.3 (.NET 7) my script stopped working ","issue_id":1705932469139,"origin_id":1324089474,"user_origin_id":1809514,"create_time":1669141931,"update_time":1669141931,"id":1715682570247,"updated_at":"2024-05-14T10:29:30.246000Z","created_at":"2024-05-14T10:29:30.246000Z"},{"_id":"66433d0a4a8e87d14e13507c","body":"For Maui this is because `IsRunningAsUwp` returns true","issue_id":1705932469139,"origin_id":1399272127,"user_origin_id":1006516,"create_time":1674315123,"update_time":1674315123,"id":1715682570256,"updated_at":"2024-05-14T10:29:30.255000Z","created_at":"2024-05-14T10:29:30.255000Z"},{"_id":"66433d0a4a8e87d14e13507d","body":"MAUI is apparently sandboxe like UWP. If I comment out the check for uwp, maui does set the \"registry\", sort of. It sets the sandbox register. The maui app is then proxied through titanium but not outside requests (e.g. Chrome). The solution would be to either have a full trust companion (console app) that could adjust the system proxy or if you're just using Maui for the Blazor option then I'd ditch Maui for WPF + Blazor.\r\n\r\nIf you're interested in getting wpf + blazor to work let me know and I can pass on some additional info.","issue_id":1705932469139,"origin_id":1399525681,"user_origin_id":1006516,"create_time":1674402575,"update_time":1674402575,"id":1715682570258,"updated_at":"2024-05-14T10:29:30.258000Z","created_at":"2024-05-14T10:29:30.258000Z"},{"_id":"66433d0a4a8e87d14e13507e","body":"So, in short, you're saying Titanium Proxy cannot run in MAUI apps on Windows?","issue_id":1705932469139,"origin_id":1399528654,"user_origin_id":6266356,"create_time":1674403002,"update_time":1674403002,"id":1715682570260,"updated_at":"2024-05-14T10:29:30.260000Z","created_at":"2024-05-14T10:29:30.260000Z"},{"_id":"66433d0a4a8e87d14e13507f","body":"It *can* but you'd have to set the registry values yourself and fork the code to by-pass the UWP check.","issue_id":1705932469139,"origin_id":1399570804,"user_origin_id":1006516,"create_time":1674412816,"update_time":1674412816,"id":1715682570264,"updated_at":"2024-05-14T10:29:30.264000Z","created_at":"2024-05-14T10:29:30.264000Z"}] comment

Getting "Setting system proxy settings are only supported in Windows. Please manually configure you operating system to use this proxy's port and address." in MAUI (.NET 7) on Windows.