Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Oct : Indy TIdHTTP vs UrlDownloadToFile

www.cryer.info
Managed Newsgroup Archive

Indy TIdHTTP vs UrlDownloadToFile

Subject:Indy TIdHTTP vs UrlDownloadToFile
Posted by:"Steve" (no.spam@onbox.com)
Date:Thu, 19 Oct 2006 00:41:10

Hi,

what could be the reason that the Indy HTTP Component
(I've tried all builds 7,8,9,10x) with

IdHTTP1.Get(MyUrl, MyMemoryStream);

causes an exception
#10057 (WSAENOTCONN)
"A request to send or receive data was disallowed because the socket is not
connected and (when sending on a datagram socket using a sendto call) no
address was supplied"

and

URLDownloadToFile(nil, PChar(MyURL), PChar(MyFilename), 0, nil);

does it without any trouble (reach the server and get the requested
document)?

Thanks for any hint.

Replies:

www.cryer.info
Managed Newsgroup Archive