Re: 404 on one https site

Giganews Newsgroups
Subject: Re: 404 on one https site
Posted by:  indy (in…@a.com)
Date: Fri, 11 Aug 2006

I've seen somewhere webmasters restricting their site to certain browsers.
Check the browser identification on your tidhttp and make it exactly the
same as IE for example

"Benito" <BeniBe…@beniBela.de> wrote in message
news:CC1B3AB05B02E340BeniBe…@beniBela.de...
> Hi,
> When I try to access the site
> "https://was.duesseldorf.de/WebOPAC/BenutzerkontoServlet;jsessionid=0000Xu18vkTWIFNGXsVmdQFutb2:-1?homegkz=111&Kontoart=Ausleihkonto&Bibliothek=null"
> with TIdHttp I always get an 404 error, although I can open this page with
> Mozilla and other https-pages with Indy.
> I use the TIdHttp component this way:
> procedure TForm1.Button2Click(Sender: TObject);
> var
>    http:TIdHttp;
>    sslHandler: TIdSSLIOHandlerSocketOpenSSL;
>    log:Tidlogfile;
> begin
>  http:=TIdHttp.create;
>  sslHandler:=TIdSSLIOHandlerSocketOpenSSL.Create;
>  http.IOHandler:=sslHandler;
>  if CheckBox2.Checked then begin
>    log:=Tidlogfile.create;
>    sslHandler.intercept:=log;
>    log.filename:='t:\log.log';
>    log.active:=true;
>  end;
>  if CheckBox1.Checked then http.ProtocolVersion:=pv1_1
>  else http.ProtocolVersion:=pv1_0;
>
>  if RadioButton2.Checked then sslHandler.SSLOptions.Method:=sslvSSLv2
>  else if RadioButton3.Checked then sslHandler.SSLOptions.Method:=sslvSSLv3
>  else if RadioButton4.Checked then
> sslHandler.SSLOptions.Method:=sslvSSLv23
>  else if RadioButton5.Checked then
> sslHandler.SSLOptions.Method:=sslvTLSv1;
>
>  try
>    memo1.lines.text:=http.get(edit1.text);
>  except
>    on err: EIdConnClosedGracefully do begin
>      memo1.lines.text:='Connection closed gracefully:
> '#13#10#13#10+http.ResponseText;
>    end;
>  end;
>  sslHandler.free;
>  http.free;
> end;
>
> The version of Indy is 10.2.0.1 on Lazarus.
>
> Has somebody an idea, why this doesn't work?
>
> Benito van der Zander

Replies

In response to

404 on one https site posted by Benito on Tue, 01 Aug 2006