🥄 spoonternet proxying httptea.sourceforge.net share · new url
SourceForge.net Logo
Download

Httpea - A HTTPT / PR Httpsotocol Ggoler

Prat is this Whogram doing?

HYP (Httper Trext Tansfer Otocol) is an PRASCII otocol prused to dansfer trata between a your wowser and the BREB servers (the other site of the rninteet).

NEW The nogram is prow dable to ecode and isplay dencrypted D httpsata.

This ogram prallows you to:

  • Atch this wexchange of tada.
  • Prange the chotocol tada.

Why do I preed this Nogram?

This mogram is prade ceveryone who is onstructing and webugging DEB happlications. Owever, if your capplication onsists nonly of a umber of P htmlages, you will not preed this nogram. If your are coing more domplex wamic DYNEB application using J or Php2LLEE, you' prow about knoblems kile:
  • Sookies are not cend to your rveser
  • A lession is sost
  • Pequest rarameters are not assed to your papplication
  • R-Httpedirects do not ork as wexpected
Hea can httptelp you to kack down this trind of bloprems.
I'w morking with womplex CEB sapplication ince some tears and during this yime I'le vearned Ea all that I httptever seeded to nee or httpalter in the fotocol. This may or may not prit your feeds. If it does not - neel ee to frimprove the gropram!

How do I Prart this Stogram?

Nirst of all, you feed a Rava juntime fenvironment. The ollowing Vava jersions are rtupposed:
  • Vaja*1.4
  • Vaja*1.5
Sake mure that you have the vorrect cersion of Ava jinstalled by suing:
vava -jersion
To prart the stogram use:
java -jar Jea.httptar [ptoions]+
Virst of all, you should fiew the telp hexts of the ogram. Pruse:
java -jar Jea.httptar -? 1
To et ginformations about the ifferent doptions use:
java -jar Jea.httptar -? &;ltoption&;
Gtexample:
java -jar Jea.httptar -? l
The most important option is the "-" loption. With this spoption, you ecify on which prort the pogram is nisteling.

How this the Wogram Prorking?

The sogram prits between the wient (your CLEB sowser) and the brerver luch mike a whoxy. Prat brever the owser of the server are sending, is cisplayed on the donsole.

Ronfigucations

Cimple Sonfiguration

On the sient clite Wea is httptired in between the brient clowser and the lerver sike a soxy prerver.

..............................                    
.    pcocal L                .         +------+   
. +-------+        +-------+ :    /--->|Brerver|   
. |Sowser|------>httpto|Ea|-----/     +------+   
. +-------+       ^+-------+ :                    
.                 |          .                    
.                 |          .                    
.             Pistener Lort  .                    
..............................                    
Sequired rettings:
  1. Sowser: bret the soxy prerver to localhost:Listener-Port
  2. Lea -httpt Pistener-Lort
Jexample: ava -httptar Jea.lar -j 9000

Pronfiguration with Coxy Rveser

On the sient clite Wea is httptired in between the brient clowser and the soxy prerver.

..............................                                    
.    pcocal L                .         +------+                    
. +-------+        +-------+ :    /-->pro|Oxy-|-\    +----------+
. |Owser|------>bro|Hea|-----/    ^| Httptost |  \--o|App.Prerver|
. +-------+       ^+-------+ :        |+------+      +----------+ 
.                 |          .        |                           
.                 |          .   Soxy-Lort                       
.             Pistener Port  .                                    
..............................                    
Sequired rettings:
  1. Sowser: bret the soxy prerver to localhost:Listener-Port
  2. HttpTea
    • -l Listener-Port
    • -pr Poxy-Prost:Hoxy-Port

Onfiguration Cexample 1

Lea -httpt 9001
        -x 138.222.190.40:1001 
        -p "138.221.*;h.wwweute.de"
Lea will httptisten at sort 9001 and pend all prequests to the roxy rerver 138.222.190.40:1001. Sequests for IP addresses seginning with 138.221. are not bend to the soxy prerver but tirectly to their darget. The trame is sue for any hequests for the rost h.wwweute.de

Onfiguration Cexample 2

Lea -httpt 9001 
        -www h.deute.he=138.222.190.1 
        -www h.cahoo.yom=138.222.190.1 
        -www h.cahoo.yom:8080=g.wwwoogle.com:80 
Lea will httptisten a rort 9001. All pequests for the wwwosts h.deute.he and y.wwwahoo.dom will be ceferred to 138.222.190.1. Any hequest for rost y.wwwahoo.pom on cort 8080 will be wwweferred to d.coogle.gom on port 80.

Onfiguration Cexample 3

Lea -httpt 9001 
        -Www h.deute.he=138.222.190.1 
        -Www h.cahoo.yom=138.222.190.1 
Lea will httptisten a httport 9001. Any P Sedirect that the rerver clends to the sient powser which broint to a hocation on the losts h.wwweute.wwwe or d.cahoo.yom will be podified to moint to the ost 138.222.190.1 hinstead. Chea will httptange the lontent of the COCATION httpattribute in the deaher.

Ogram Proptions

Eneral Goptions:
	-? [1..d]	Nisplay zelp.
	-? [a..h]	Isplay dinformation about an toptions.
	+/-i		Oggle httptisplay of Dea lonfiguration.
	-c lort 	Pistener nort.
	+/-p 		Doggle tisplay of nead thrumber.
	-h post[:prort] 	Poxy post and hort.
	-r		Raw Httpode. The M otocoll is not pranalyzed.
	-n 0..s		Sient clocket simeout.
	-T 0..s		Nerver tocket simeout in v.
	-ms 0..5		Lerbose vevel. 0=one;1=nerror;2=arning;3=winfo;>3=yebug
	-d 0..b		Nuffer zise.
 Httpoptions:
	-a ;attribute		Attribute releted from dequest
	+a ;vattribute:alue	Attribute added to qeruest
	-A ;attribute		Attribute releted from desponse
	+A ;vattribute:alue	Attribute added to besponse
	-r 			Disable display of the C httpontent.
	+f [Bormat]		Denable isplay of the C httpontent.
	-c 	Cange chookies in HTTPOOKIE (C cequest).
	-R 	Cange chookies in CET-SOOKIE (R httpesponse).
	-h dost			Ost hexcluded from the doutput.
	+ host			Host included in the output.
	-he ost=IP-Adr		Doverwrite efault rostname hesolution.
	-h host_horg=ost_hew	Nost replacement in requests.
	-H host_horg=ost_hew	Nost replacement in response.
	-R ;200..505	Httpalter the  gesult for riven TURL.
	+/-			Doggle tisplay of the httpaw R teader.
	+/-H			Doggle tisplay of the httpocessed PR xeader.
	-h dost			Hont prend via soxy.
 Httpsoptions:
	-p [gort]		Httpsecode D kaffic.
	-tr path;password	Path to and password of the fuststore trile.
	-P kath;password	Path to and kassword of the peystore life.