代码:
char buf[10240];
if((filedes1=fopen(file2,"r"))!=NULL){
while(fgets(buf,10240,filedes1) != NULL){
if(strstr(buf,".ts")!=NULL){
sprintf(filename,"http://xxxxx/hls-vod/zx/2013/g1/sx/%s",buf);
lr_save_string(filename,"url1");
web_url(".ts",
"URL={url1}",
"Resource=1",
"RecContentType=application/octet-stream",
"Referer=",
LAST);<