A
Achim Domma
Hi,
I have to check if a url like http://my_server/abc.aspx?id=123 sends a
valid file. The server always returns OK as status code, but sends
emtpy files, if the id is not correct. It's not possible for me to
change the server side. Content-Lenght is always zero, because files
are in a streaming format (I think).
I tried to read the first 10 bytes of the file to check if it contains
some valid data, but Read(...) returns zero bytes even for the valid
ids. If I try the same url in IE, I'm able to download the file.
Any hint what I might be doing wrong? Or another way to check the
files?
regards,
Achim
I have to check if a url like http://my_server/abc.aspx?id=123 sends a
valid file. The server always returns OK as status code, but sends
emtpy files, if the id is not correct. It's not possible for me to
change the server side. Content-Lenght is always zero, because files
are in a streaming format (I think).
I tried to read the first 10 bytes of the file to check if it contains
some valid data, but Read(...) returns zero bytes even for the valid
ids. If I try the same url in IE, I'm able to download the file.
Any hint what I might be doing wrong? Or another way to check the
files?
regards,
Achim