Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Titanium-Web-Proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Titanium-Web-Proxy
Commits
5d1e4fe6
Commit
5d1e4fe6
authored
Jul 18, 2016
by
justcoding121
Committed by
justcoding121
Jul 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
7cc49027
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
23 deletions
+6
-23
README.md
README.md
+2
-2
HttpWebClient.cs
Titanium.Web.Proxy/Http/HttpWebClient.cs
+0
-1
TcpConnection.cs
Titanium.Web.Proxy/Network/TcpConnection.cs
+0
-15
TcpConnectionFactory.cs
Titanium.Web.Proxy/Network/TcpConnectionFactory.cs
+1
-2
ProxyServer.cs
Titanium.Web.Proxy/ProxyServer.cs
+2
-2
RequestHandler.cs
Titanium.Web.Proxy/RequestHandler.cs
+1
-1
No files found.
README.md
View file @
5d1e4fe6
...
...
@@ -69,8 +69,8 @@ Setup HTTP proxy:
};
proxyServer
.
AddEndPoint
(
transparentEndPoint
);
//proxyServer.
UpStream
HttpProxy = new ExternalProxy() { HostName = "localhost", Port = 8888 };
//proxyServer.
UpStream
HttpsProxy = new ExternalProxy() { HostName = "localhost", Port = 8888 };
//proxyServer.
External
HttpProxy = new ExternalProxy() { HostName = "localhost", Port = 8888 };
//proxyServer.
External
HttpsProxy = new ExternalProxy() { HostName = "localhost", Port = 8888 };
foreach
(
var
endPoint
in
proxyServer
.
ProxyEndPoints
)
Console
.
WriteLine
(
"Listening on '{0}' endpoint at Ip {1} and port: {2} "
,
...
...
Titanium.Web.Proxy/Http/HttpWebClient.cs
View file @
5d1e4fe6
...
...
@@ -39,7 +39,6 @@ namespace Titanium.Web.Proxy.Http
/// <param name="Connection"></param>
internal
void
SetConnection
(
TcpConnection
Connection
)
{
Connection
.
LastAccess
=
DateTime
.
Now
;
ServerConnection
=
Connection
;
}
...
...
Titanium.Web.Proxy/Network/TcpConnection.cs
View file @
5d1e4fe6
...
...
@@ -15,11 +15,6 @@ namespace Titanium.Web.Proxy.Network
internal
bool
IsHttps
{
get
;
set
;
}
/// <summary>
/// Http version
/// </summary>
internal
Version
Version
{
get
;
set
;
}
internal
TcpClient
TcpClient
{
get
;
set
;
}
/// <summary>
...
...
@@ -32,16 +27,6 @@ namespace Titanium.Web.Proxy.Network
/// </summary>
internal
Stream
Stream
{
get
;
set
;
}
/// <summary>
/// Last time this connection was used
/// </summary>
internal
DateTime
LastAccess
{
get
;
set
;
}
internal
TcpConnection
()
{
LastAccess
=
DateTime
.
Now
;
}
public
void
Dispose
()
{
Stream
.
Close
();
...
...
Titanium.Web.Proxy/Network/TcpConnectionFactory.cs
View file @
5d1e4fe6
...
...
@@ -127,8 +127,7 @@ namespace Titanium.Web.Proxy.Network
IsHttps
=
isHttps
,
TcpClient
=
client
,
StreamReader
=
new
CustomBinaryReader
(
stream
),
Stream
=
stream
,
Version
=
httpVersion
Stream
=
stream
};
}
}
...
...
Titanium.Web.Proxy/ProxyServer.cs
View file @
5d1e4fe6
...
...
@@ -89,12 +89,12 @@ namespace Titanium.Web.Proxy
/// <summary>
/// External proxy for Http
/// </summary>
public
ExternalProxy
UpStream
HttpProxy
{
get
;
set
;
}
public
ExternalProxy
External
HttpProxy
{
get
;
set
;
}
/// <summary>
/// External proxy for Http
/// </summary>
public
ExternalProxy
UpStream
HttpsProxy
{
get
;
set
;
}
public
ExternalProxy
External
HttpsProxy
{
get
;
set
;
}
/// <summary>
/// Verifies the remote Secure Sockets Layer (SSL) certificate used for authentication
...
...
Titanium.Web.Proxy/RequestHandler.cs
View file @
5d1e4fe6
...
...
@@ -332,7 +332,7 @@ namespace Titanium.Web.Proxy
args
.
IsHttps
,
SupportedSslProtocols
,
new
RemoteCertificateValidationCallback
(
ValidateServerCertificate
),
new
LocalCertificateSelectionCallback
(
SelectClientCertificate
),
UpStreamHttpProxy
,
UpStream
HttpsProxy
,
clientStream
);
ExternalHttpProxy
,
External
HttpsProxy
,
clientStream
);
}
args
.
WebSession
.
Request
.
RequestLocked
=
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment