лслвики пишет что размер страницы ограничен 2048 байтами, т.е. дело видимо не в этом.
Quote
body is set to the body of the HTTP response as long as the response includes a "Content-Type" header specifying a text mime type. If a mime type is not specified or the type is not a text type, body is set to "Unsupported or unknown Content-Type." If the "Content-Type" header specifies a character set, body will be set to the body of the response transcoded to UTF-8, or to "Unsupported or unknown character set." if the character set is unsupported. The body is currently limited to 2048 bytes.
в чем может быть проблема?
Запрашиваю вэб-страницу этим lsl кодом:
default {
state_entry() {
httpphrase=llHTTPRequest(URLphrase, [] ,"");
}
http_response(key id,integer status, list meta, string body)
{
if(httpphrase==id)
{
integer i;
list lbody=llParseString2List(body,["\n"],[]);
integer count=llGetListLength(lbody);
for(i=0;i<count;i++)
{
if (i==0){phrase_01 = llList2String(lbody,i);}
else if (i==1){phrase_02 = llList2String(lbody,i);}
else if (i==2){phrase_03 = llList2String(lbody,i);}
else if (i==3){phrase_04 = llList2String(lbody,i);}
else if (i==4){phrase_05 = llList2String(lbody,i);}
else if (i==5){phrase_06 = llList2String(lbody,i);}
else if (i==6){phrase_07 = llList2String(lbody,i);}
else if (i==7){phrase_08 = llList2String(lbody,i);}
else if (i==8){phrase_09 = llList2String(lbody,i);}
else if (i==9){phrase_10 = llList2String(lbody,i);}
else if (i==10){phrase_11 = llList2String(lbody,i);}
else if (i==11){phrase_12 = llList2String(lbody,i);}
else if (i==12){phrase_13 = llList2String(lbody,i);}
else if (i==13){phrase_14 = llList2String(lbody,i);}
}
llOwnerSay("phrase_13 :" + phrase_13);
llOwnerSay("phrase_14 :" + phrase_14);
//meta=[];
//body="";
state stoped;
}
}
}
вывожу на сервере этим perl скриптом (если загружать не из lsl а через браузер - выдает все строки полностью):
#!/usr/bin/perl -w print "Content-type: text/plain;charset=windows-1251\n\n"; print "Считаем до двух и поехали!\n"; print "Следующий вопрос: \n"; print ", правильно!!! Ответ: \n"; print "Подсказка: \n"; print "Время вышло. А ответ был: \n"; print "Игра остановлена. Включается через меню;)\n"; print " отменяет вопрос. А ответ был: \n"; print "Sorry, you have no access!\n"; print "Нет игроков - нет игры;)\n"; print "Ответ: \n"; print " отвечает на пять вопросов подряд\n"; print "Вопрос отменен.\n"; print "Никто не ответил.\n"; print "Победитель: \n";









