Article View: borland.public.cppbuilder.internet.socket
Article #21urgent-help on indy
From: sa
Date: Tue, 29 Jul 2008 18:52
Date: Tue, 29 Jul 2008 18:52
43 lines
1920 bytes
1920 bytes
Hello all.
I have a strange problem using TldHTTP component.
I am using BCB 6 and Indy 9.0.?? for communication.
1.My program has to download .xml, .jpg, .bmp files and store to the disk.
Code
-----
HTTP->Request->Pragma = "no-cache";
HTTP->HandleRedirects = true;
HTTP->ReadTimeout = 15000;
HTTP->Get(URL, FILEStream);
FILEStream->SaveToFile("C:\\test.xml");
Headers
---------
Accept = */*
AcceptEncoding = gzip, deflate
AcceptLanguage = en-us
Connection = Keep-Alive
ContectEncoding =
ContectLanguage =
ContectLength = -1
ContectRange = 0
ContectType =
With the same code and same request headers the program works fine with DSL
and Dialup connection. But failed with USB wireless internet connection.
Failed in the sense, after download xml file i see junk characters in the
file
Browser can able to display the files, i compared headers using HTTP packet
sniffer but no luck.
Please let me know if i need to provide more details.
Regards
SA
Technical Details
Message-ID:
<488f6705@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3402e2c45f39c911,start X-Google-Attributes: gid11508e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "sa" <shaikakbar250281@yahoo.co.in> Newsgroups: borland.public.cppbuilder.internet.socket Subject: urgent-help on indy Date: Tue, 29 Jul 2008 21:52:52 +0300 Lines: 45 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 212.43.31.241 Message-ID: <488f6705@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1217357573 212.43.31.241 (29 Jul 2008 11:52:53 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail