Auto responder with both http and https

1,886 views
Skip to first unread message

bangla...@gmail.com

unread,
Mar 24, 2014, 1:03:37 PM3/24/14
to httpf...@googlegroups.com
I am using Fiddler for inserting front query in requesting url.
It works fine for any single protocol from HTTP/HTTPS.

But, when I want to use both protocol with auto responder rule, It fails to load HTTPS traffic with error message "Could not resolve hostname FRONT QUERY WITH PATH".
Currently I am using VNAP NET Buster for HTTP proxying and Fiddler for HTTPS proxying. How can I use both traffic via single Fiddler?

EricLaw

unread,
Mar 25, 2014, 1:00:02 PM3/25/14
to httpf...@googlegroups.com
I'm afraid you need to explain better what you're attempting to do.

What exactly are the rules you have in your AutoResponder?

What is a "VNAP NET BUSTER" and when and how exactly have you set it as a proxy?

bangla...@gmail.com

unread,
Mar 28, 2014, 1:47:41 AM3/28/14
to httpf...@googlegroups.com
In fiddler auto responder, If I use only https traffic, it works fine--
<?xml version="1.0" encoding="utf-8"?>
<AutoResponder LastSave="2014-03-28T10:47:36.9723688+06:00" FiddlerVersion="2.4.5.8">
 
<State Enabled="true" Fallthrough="false" UseLatency="false">
   
<ResponseRule Match="REGEX:https://(.+)" Action="http://example.com/tun/https.php?$1" Enabled="true" />
 
</State>
</AutoResponder>


CONNECT groups.google.com:443 HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
Proxy-Connection: keep-alive
Connection: keep-alive
Host: groups.google.com


HTTP/1.1 200 DecryptEndpoint Created
Timestamp: 11:23:30.283
FiddlerGateway: AutoResponder
Connection: close

This is a Fiddler-generated response to the client's request for a CONNECT tunnel.

GET /tun/https.php?groups.google.com/forum/deferredjs/D770E9FF1EB6A5FF9B91DA5332EA16B8/10.cache.js HTTP/1.1
Host: example.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
Accept: */*
Accept-Language: bn,bn-bnd;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://groups.google.com/forum/
Connection: keep-alive


HTTP/1.1 200 OK
Date: Fri, 28 Mar 2014 05:23:30 GMT
Server: Apache/2.2.26 (Unix) mod_ssl/2.2.26 OpenSSL/1.0.1e-fips mod_bwlimited/1.4
Expires: Sat, 28 Mar 2015 05:14:00 GMT
Content-Encoding: gzip
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Cache-Control: public, max-age=31536000
Age: 570
Alternate-Protocol: 443:quic
Content-Length: 285
Keep-Alive: timeout=5, max=100
Connection: close
Content-Type: application/x-javascript

?

If I want to use both traffic with this rule, it fails to load https traffic--

<?xml version="1.0" encoding="utf-8"?>
<AutoResponder LastSave="2014-03-28T10:47:36.9723688+06:00" FiddlerVersion="2.4.5.8">
 
<State Enabled="true" Fallthrough="false" UseLatency="false">
   
<ResponseRule Match="REGEX:http://(.+)" Action="http://example.com/tun/http.php?$1" Enabled="true" />
   
<ResponseRule Match="REGEX:https://(.+)" Action="http://example.com/tun/https.php?$1" Enabled="true" />
 
</State>
</AutoResponder>


CONNECT example.com/tun/http.php?groups.google.com:443 HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
Proxy-Connection: keep-alive
Connection: keep-alive
Host: example.com/tun/http.php?groups.google.com:443


HTTP/1.1 502 Fiddler - DNS Lookup Failed
Date: Fri, 28 Mar 2014 05:37:27 GMT
Content-Type: text/html; charset=UTF-8
Connection: close
Cache-Control: no-cache, must-revalidate
Timestamp: 11:37:27.711

[Fiddler] DNS Lookup for "example.com/tun/http.php?groups.google.com" failed. No such host is known

Now how can I use both traffic proxying with only single fiddler at the same time?

EricLaw

unread,
Mar 28, 2014, 1:24:29 PM3/28/14
to httpf...@googlegroups.com
Sure, this is basically expected. Your HTTP rule doesn't exclude CONNECT requests and thus it corrupts their responses.

Add this rule as the first one in the list:

    <ResponseRule Match="METHOD:CONNECT" Action="*ReplyWithTunnel" Enabled="true" />
Reply all
Reply to author
Forward
0 new messages