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:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Thu, 25 Jan 2007 10:44:55

"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 get this from time to time and do not really understand why.

From RFC 2616:

10.5.3 502 Bad Gateway

   The server, while acting as a gateway or proxy, received an invalid
   response from the upstream server it accessed in attempting to
   fulfill the request.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive