Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Mar : Re: Can't Get the page

www.cryer.info
Managed Newsgroup Archive

Re: Can't Get the page

Subject:Re: Can't Get the page
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Wed, 26 Mar 2008 16:42:35

"fer" <feridunmobil@tiasoft.com> wrote in message
news:47eacade$1@newsgroups.borland.com...

>  Myssl.DefaultPort   := 443 ;

There is no DefaultPort property.  Any non-default Port values need to be
specified in the actual URL that you pass to TIdHTTP.Get() instead.

> MyHttp.Request.AcceptEncoding := 'gzip, deflate';

That will not work unless you assign the TIdHTTP's Compressor property,
which you are not doing.

> MyHttp.Request.ContentType := 'application/x-www-form-urlencoded';

The "Content-Type" header has no meaning when performing a GET request, as
there is no body data transmitted.

> it goes to
>
>  raise EIdConnClosedGracefully.Create(RSConnectionClosedGracefully);
>
> and nothing it reads

You did not say which build of Indy 10 you are actually using.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive