diff --git a/package.json b/package.json
index 5b62aa2..f6b450d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "anyproxy",
- "version": "2.4.6",
+ "version": "2.4.7",
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
"main": "proxy.js",
"bin": {
diff --git a/web/css/page.css b/web/css/page.css
index e98eadf..cb03805 100644
--- a/web/css/page.css
+++ b/web/css/page.css
@@ -77,7 +77,7 @@
}
.mainTableWrapper .col_time{
- width: 160px;
+ width: 140px;
}
.mainTableWrapper tr.row_odd{
@@ -93,13 +93,11 @@
background: #CCC;
}
-.resHeader{
- width: 400px;
-}
-
-.resBody textarea{
- width: 400px;
- height: 280px;
+.resBody .resBodyContent{
+ min-width: 200px;
+ padding: 10px;
+ border: 1px solid #99baca;
+ background: #f5fbfe;
}
.subTitle{
diff --git a/web/detail.html b/web/detail.html
new file mode 100644
index 0000000..952e93c
--- /dev/null
+++ b/web/detail.html
@@ -0,0 +1,62 @@
+
+
+
+ Anyproxy
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/web/detail.js b/web/detail.js
new file mode 100644
index 0000000..0dc5c7a
--- /dev/null
+++ b/web/detail.js
@@ -0,0 +1,67 @@
+define("./detail",['$', 'gallery/underscore/1.6.0/underscore.js'],function(require,exports,module){
+ var _ = require("gallery/underscore/1.6.0/underscore.js"),
+ $ = require("$");
+
+ var tpl = ""+
+ ' '+
+ ' request
'+
+ ' '+
+ '
'+
+ ' - <%= method %> <%= host %>
'+
+ ' - <%= path %>
'+
+ ' <% _.each(reqHeader, function(v,k) { %> - <%= k %> : <%= v %>
<% }); %>'+
+ '
'+
+ '
'+
+ ' '+
+ ''+
+ ' '+
+ ' request body
'+
+ ' '+
+ '
<%= reqBody %>
'+
+ '
'+
+ ' '+
+ ''+
+ ' <% if(statusCode) { %>'+
+ ' '+
+ ''+
+ ' '+
+ ' response body
'+
+ ' '+
+ ' '+
+ ' <% } %>';
+
+ function render(data,cb){
+ var $baseTpl = $(_.template(tpl, data));
+
+ if(data.statusCode){ //if finished
+ $.ajax({
+ url : "/body?id=" + data._id,
+ headers : {
+ anyproxy_web_req : true
+ },
+ type : "GET",
+ success : function(data){
+ $(".J_responseBody", $baseTpl).html(data);
+ cb($baseTpl);
+ }
+ });
+ }else{
+ cb($baseTpl);
+ }
+ }
+
+ exports.render = render;
+});
\ No newline at end of file
diff --git a/web/index.html b/web/index.html
index e6914f1..1cd6792 100644
--- a/web/index.html
+++ b/web/index.html
@@ -9,6 +9,7 @@
+
+
Close (ESC)
@@ -44,9 +46,11 @@
+
+
-
-
-
+