| > This is a off topic message and has nothing to do with
> httrack. I'm desperate and need help. Maybe someone can
help me.
> I try to make a simple program to retrieve data from a
> webpage and store it in a file called 't.htm' but it only
> works for certain websites and I don't know why.
> I test it with www.yahoo.com and it works but not for
> www.altavista.com.
1.
Apparently you are using \n as end of line. You MUST (RFC)
use \r\n as canonical end of lines. Servers SHOULD (RFC)
accept \n as eol, but are not required to do so. Therefore,
servers may not fullfil your request properly.
2.
Do NOT use Connection: Keep-Alive unless you exactly know
what you are doing (see RFC2616). Use Connection: Close for
safer results
3.
Always use a Host: header (RFC2616)
| |