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

cgi 上载,高手帮上忙,多谢

2012-12-17 
cgi 下载求助,高手帮下忙,谢谢!本帖最后由 luoyang24042030 于 2011-02-28 12:34:50 编辑刚学CGI,请高手帮

cgi 下载求助,高手帮下忙,谢谢!
本帖最后由 luoyang24042030 于 2011-02-28 12:34:50 编辑 刚学CGI,请高手帮帮忙
前段时间用C语言做了个附件下载的CGI,当时测试OK,后来融入到整个项目时,发现下载速度为0,下载后PART文件无法与转化为目标文件,请大虾帮帮忙
抓包的数据如下:
POST /cgi-bin/export_setting.cgi HTTP/1.1

Host: 192.168.1.1

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: zh-cn,zh;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: GB2312,utf-8;q=0.7,*;q=0.7

Keep-Alive: 115

Connection: keep-alive

Referer: http://192.168.1.1/adm/settings.asp

Cookie: language=zhcn

Authorization: Basic YWRtaW46YWRtaW4=

Content-Type: multipart/form-data; boundary=---------------------------61721124329929

Content-Length: 149



-----------------------------61721124329929

Content-Disposition: form-data; name="Export"



......

-----------------------------61721124329929--

HTTP/1.0 200 OK

HTTP/1.1 200 OK
Pragma: no-cache
Cache-control: no-cache
Content-type: application/octet-stream;charset=utf-8
Content-Transfer-Encoding: binary
Content-Disposition: attachment; filename=backupSettings.dat

YSZJ....................................sfqEYZg.........................................................Mk.V............................................................................................................................................................................................................................................................................................................................................................................................................;...'...a. .A
=.8'
..5b8!..L?7'<]..&b6-]..?-"-.Of.'2).
.X.1*4..&.eB5..&.5%.\&..ypLXX.w^....<.5,...X.5;... &i)...<H.8..
&+;&0..7.eB-

&$;:.\>.qd}Ok.3,.'...16='.,.6'i.5"<X55&"..3&0:@QBbldfMk.3,.&...31?uMO\|rzxw.
<.3)...3;ixSQBbldB
..
2&!...+.0&.\\|rzxSQf%#:....=,0)..36,'uMO\|rzxw.
<.$8
..
7'-.\."2;-"..70^?..3"2$'.>.31'u
..='.8...%&^?..3"2$'.>.70"!..QX55&".."-1....=&1u6..".8!..f%#:.
..='.'
..?'i~Mk.3,.$O..
11:...o.f<
>.70"-.k.3,.$O..
7'-.\.`6$.... H#).>.`6$.
..!.8z..3"#';
.f%#:..S.".9'..QbH#).>.`6$...QbldfMO\X55&"
^&2.&...31?uMO\|rzxw.
<.8z..35# -
..orzxSQBbH#).>."6$....$'&u
..".'-... H#).>."6$.... .$8..3'11:w.
<.$8..3"#';@..&2.8...%&^?..3"2 8"..6'ixw.
<.$8..3;2ixSQBbldB
..
2$<
>.769).
QbldfMO\X55&"..&2./...%#-uMO\|rzxw

<.=8... .eqOO]dzzySPf>#:....?#'#@SYglf}HO^gwzxw..12.&...7&iyw..12.<...osmzSPZjlefLQ\X&<+
$.6.eqOO]dzzySPUkH0 ..!31?uOTY|pa}SSYgldB...".&!9..osmzSPZjlefLk.:!$...(<1iB...".5<..
+.eqOO]dzzySPf6*781.
!'ipKU\bH6$....65<..QbH'<
$.3 8-.\\X.8<.$.3 8-.\]X+3%
$.3 8-.\\X,5<8.
0.1,@Pf...'..*;. -.$.3 8-@Qf...'..*;. -.3.>''uw1. 6.'..
 &.&...7.dB-..&.;:
..6.!$..QX.5+;..&'&
...>'ixw,
1.=$....78-.\f.'2).
..+&-
..>.;$...or^.0;)<#6$.\\X...41-6&&-..QX..u>28
rdpw/8..1:.....iB35<.;:+@k(.......;&1:@k(...uw%(...+...<6iB9%"..5;... &iB>..<6&1/..;-:uLk/=7:<..>7%='. .3,0uIk/=7:<../=&1u>/f.1'!./.?.eB.2%.si.>&Ajsm|<Yf.+&-...!.;,.\UX.,....or^....<'8uLPf.#'!.3


&'iyHk.7#7'.1. +;,@P\bH.<..<70='.\]X.,.... .exMk(;15*..#...uMk...&'...&+;&@Qf.:.&...<#iB/.-<61&..QX.,...
? 8-@Qf.......!*;$.\^avcB;.
5.<:...=.0uORXdH.0?..!6iyw1.&.3/...361uLk8'06'/..7.dB*...#$).
.os^.- .41:uNZ[isoyw <.59!.\Xivo{FSf...?...otoyMZXiq^.-5.=2ixFQWkvo|Jk-....@QWbydsMk....!...oqo.FSW`H...".?+:uIZXiqozw#?..#%..QcroyMZXiq^
.28*-$uMZ\i{`sIVf....>,QbydsMZ\X.7#-..;!-uMZ\iroxw <...)
..>'ixw% ..58...7.dB3.*=0#)...<%ixw/..-&?...;,3
)/.....@Qf.+0-.2%..dB... 6.$..QcH.=../:#:&.
?7.1+.\\X.1+...&;.'..QbH..</)<#6$.\\X...3/
?'iB+--...uMk:....... + 1@Qf.17...
.-0-@Qf.17...
.65<..Q`H.;. '..iyw6.1.;&...'01,@Qf.17.....2 !..QbH.;. .&+;&4..7:iqw6.1.=&>..7.^...>7%.-...&.eB*...11.-.<os^...9!'..9\\X.'+.2%....:L;....<Yf.17...!...u*1-....w6.1.;&....'  ..QcqlB*...7  )..7.eB*...,7:..8+21uLk;!!.-
*.+.'+...71 B4$).zdzL9QbH.
8$Tbpey5\\X......=&i~w1.7.!<.\\X.!<.,.6'i.- ^...B8.. ;$....o...w3.9'-.... 45$@RZbr^..
.+.1<...o...8k<...)....'&!..Qcr^.- <..euJU\krdxNQ\X.1....&.114%Q`H.-.P8+21uMk'7;e...]oH.-.S8+21uMk'7;f...]oH.-.R8+21uMk'7;g...]oH.-.U8+21uMk'7;`...]oH..>..<61:@Qf....)"QcH.."3(..eB553.+:#<.
"6ixw)8

$....or^.)>!"&!....;6-uHk$....)"$..dB553..iyw)8
.!<.#-os^.)>...1+...7.dB553....(\\X
..? ;;,.!..Qdv^.)>+..eB553....@Pf....>2Qaq^.)><.
.
>5QcH..",%.
..@Rf...|M,$....). ....)\\X
..).?&01).\^X
../.?&01).\^X.=&...6-.)
..>'ixw .1'';-..;!-x@Qf.!7-../=, :.
 ;1 x@k-1!1;.1.>+71L\\X.7+....-:<....+'<L\f.!7-..<=.=+.SQbH.+...!.;&...>.=;.SQX.7+....-8!.._or^....!1.'...=..!.._oH.,.$.3 8-@Qf.&'
...+2.1
.Q.
.
w6.!.=;.\f.&'...QX.=:.
.!1.>...or^.<%%.......70ixw3-...."1. 6iyEP^X...44?
.11@..5H..9(9...+..3.'&>..QX...44?
.7+.><=0 uLY]aH..9(9...+..3.'-uw..!1='.>.;/1'..3;, -..
>.dB...7. !...'6.!... 45$@Qf!65....>'';0..7.mB.....:).
.6.eB...".:).
.6.eB1..575/.\.:!:B* "
..." (..ixM[)bx`
GY]h{`r<Tf.....
.6.dB..(7$5=..QbH..4"8+21uEk8
.5<.\^X......op^?..36*78"..!.dB.....;&.$.3 8-.\\X.

其中HTTP头后面的内容为我的目标内容。
[解决办法]
已经解决,尽管没人回复,还是谢谢曾经来逛过的
[解决办法]
该回复于2011-03-05 09:40:23被版主删除
[解决办法]
该回复于2011-03-05 09:40:23被版主删除
[解决办法]
你是怎么配置CGI的 能告诉我下么

热点排行