Но вот есть проблема , рапида не хочет отдавать контент если я подключаюсь к ней TCP клиентом
а естли через браузер то нет проблем .
Схема прилагается , посмотрите что не так я делаю плиз...
Add(MainForm,8074675,82,56)
{
Left=20
Top=105
Width=460
Height=206
}
Add(FormatStr,12937320,397,294)
{
DataCount=4
Mask="POST %1 HTTP/1.0
User-Agent: Opera/9.27 (Windows NT 5.1; U; ru)
Host: %2
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: ru-RU,ru;q=0.9,en;q=0.8
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Proxy-Connection: close
Content-Length: %3
Content-Type: application/x-www-form-urlencoded
%4"
link(onFString,15298966:doEvent1,[])
link(Str1,16079275:Value,[(403,230)(361,230)])
link(Str2,8900689:Var1,[(410,216)(480,216)])
link(Str4,3025433:Var2,[])
}
Add(Memory,1493064,418,224)
{
Default=String(dl.start=Free)
}
Add(Convertor,10899083,250,133)
{
Mode=11
link(onResult,3084792:doSearch,[])
}
Add(HTTP_Get,4898191,194,126)
{
link(onDownload,10899083:doConvert,[])
link(URL,8664261:Text,[])
}
Add(Edit,8664261,194,77)
{
Width=390
Text="http://rapidshare.com/files/34228268/Bandits_EPIDEM.RU_.part08.rar"
}
Add(Message,11186567,733,294)
{
}
Add(Button,4808206,131,126)
{
Left=390
link(onClick,4898191:doDownload,[])
}
Add(TCP_Client,4279505,614,294)
{
Port=80
link(onRead,15070424:doEvent1,[(662,300)(662,279)])
link(onConnect,14274139:doOn,[(671,307)(671,370)])
link(onDisconnect,14274139:doOff,[(665,314)(665,363)])
}
Add(BlockFind,3084792,306,133)
{
IncludeBlock=1
StartBlock="<form action=""
EndBlock="" method="post">"
link(onSearch,16079275:doValue,[])
}
Add(Length,15764562,334,294)
{
link(onLength,12937320:doString,[])
link(Str,3025433:Var1,[(340,275)])
}
Add(LED,14274139,684,350)
{
Left=300
Top=115
}
Add(Memory,3043073,453,133)
{
link(onData,15764562:doLength,[(497,139)(497,219)(322,219)(322,300)])
}
Add(Memory,16079275,355,133)
{
link(onData,9365035:doSearch,[])
}
Add(Ping,6031350,558,294)
{
link(onFind,4279505:doOpen,[])
link(Name,8900689:Var3,[(564,233)])
}
Add(Hub,15298966,502,294)
{
link(onEvent1,6031350:doPing,[])
link(onEvent2,4279505:doSend,[(574,307)(574,314)])
}
Add(BlockFind,9365035,404,133)
{
IncludeBlock=1
StartBlock="http://"
EndBlock="/"
link(onSearch,3043073:doValue,[])
}
Add(GetDataEx,8900689,467,224)
{
Angle=3
link(Data,3043073:Value,[(459,233)])
}
Add(GetDataEx,3025433,411,266)
{
link(Data,1493064:Value,[])
}
Add(Label,13054784,236,231)
{
Left=250
Top=95
Width=129
Height=17
Caption="Индикатор подключения"
}
Add(Clipboard,8628133,733,245)
{
}
Add(Hub,15070424,677,273)
{
link(onEvent1,8628133:doPutText,[(721,279)(721,251)])
link(onEvent2,11186567:doMessage,[(721,286)(721,300)])
}