首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > CGI >

急求:x-www-form-urlencoded编码怎么解码

2012-03-26 
急求:x-www-form-urlencoded编码如何解码?有这样一段网络包数据,显示上传信息经过x-www-form-urlencoded编

急求:x-www-form-urlencoded编码如何解码?
有这样一段网络包数据,显示上传信息经过x-www-form-urlencoded编码,现在想知道上传的额是什么信息,如何解码呢?请高手帮忙,不甚感谢!


POST http://download.websense.com/cgi-bin/nph-wsget20.exe HTTP/1.0

User-Agent: Websense server 4.X

Content-Length: 414

Content-Type: application/x-www-form-urlencoded

Proxy-Authorization: Basic eDU0NTU1OjEzMTR3QWhw



xdata=hzzZNGOBt6FCIQQGFUsVorkNl78R/W49eGzacxMbbNmAMvsR7lqbHV19FRi2LtCPckPkdIfxn5EPNrqu7YxK1O0sBMYJxbVPh2h/PrePmz9F6HhDdR1jokaqVoJolj7Z/e/9iVf75Pfqj5HzZ6O3RLA0yeTvrY1U8jKHz7uorHKiwWe4DyYdd7KR4iLt2Sjv9IaHIMUsgHf8nXsD/lqVmTyexuvtdj5KHFjwymOuvt8G+DmiIeWFPNkZZmR3P6NW5m5zlM6dW3mi5DegI2qJgchRmL1db+V61g5B4BLKCzGtcg2+JFd5+0V5ira2cCg2KvpGrQcDGRPXxoLDuPnRiijwqfe2Pv7WQF9znV4LSCc3g+n3qkDrN6hFz3oMat00keHzdDeM0gYHcZdw6CXm3A==HTTP/1.1 200 OK

Proxy-Connection: close

Connection: close

Content-Length: 512

Via: 1.1 proxy

Content-Type: application/octet-stream

Cache-Control: no-store, no-cache



............................................I..p...............................................`.b.c.d.n.p.l.m.q.r.s.t.~.......................................
.....
...............................@.A.B.C.D.E.F.H.I.J.K.L.N.O.P.Q.R.S.T.U.V.W.X.Y.Z.[.\.].^._.a.e.f.g.k.o.u.v.y.z.{.|.}.........................................................................
.....................
.........................<..............................l<.......8...0...*"/puU.}.
*.....E\.i..v.T!...Y..k(.......#t.R$.@.

[解决办法]
好像Java里有解码这个方法;
String result = URLDecoder.decode(str,"gbk");//str是要解码的内容;

热点排行