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
c0c4d15f
Commit
c0c4d15f
authored
Sep 07, 2015
by
justcoding121
Committed by
justcoding121
Sep 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update readme
parent
ee9a0929
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
README.md
README.md
+1
-6
No files found.
README.md
View file @
c0c4d15f
...
...
@@ -55,10 +55,8 @@ Sample request and response event handlers
//Test On Request, intercept requests
public
void
OnRequest
(
object
sender
,
SessionEventArgs
e
)
{
Console
.
WriteLine
(
e
.
RequestURL
);
//read request headers
var
requestHeaders
=
e
.
RequestHeaders
;
...
...
@@ -81,16 +79,13 @@ Sample request and response event handlers
{
e
.
Ok
(
"<!DOCTYPE html><html><body><h1>Website Blocked</h1><p>Blocked by titanium web proxy.</p></body></html>"
);
}
}
public
void
OnResponse
(
object
sender
,
SessionEventArgs
e
)
{
//read response headers
var
responseHeaders
=
e
.
ResponseHeaders
;
if
(
e
.
ResponseStatusCode
==
HttpStatusCode
.
OK
)
{
if
(
e
.
ResponseContentType
.
Trim
().
ToLower
().
Contains
(
"text/html"
))
...
...
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