Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Jan : Re: HTTP status 502 Bad Gateway

www.cryer.info
Managed Newsgroup Archive

Re: HTTP status 502 Bad Gateway

Subject:Re: HTTP status 502 Bad Gateway
Posted by:"Philip von Melle" (philip.vonmel..@globetrotter.de)
Date:26 Jan 2007 01:53:30

"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:

>
> "Philip von Melle" <philip.vonmelle@globetrotter.de> wrote in message
> news:Xns98C392180C933philipvonmelleglobe@207.105.83.66...
>
>> When does TIdHTTPServer issue HTTP status "HTTP/1.1 502 Bad
> Gateway"?
>
> When the user's OnCommandGet event handler code tells it to.  That is
> not a status code that TIdHTTPServer issues automatically (or any
> other status code, for that matter).

I had thought so as well searching the source, but I get
EIdHTTPProtocolExceptions "HTTP/1.1 502 Bad Gateway" and I don't set
anything like that in my OnCommandGet event handler (I am never touching
TIdHTTPResponseInfo.ResponseCode).

Philip

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive