Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error getting HTML code

Status
Not open for further replies.

Regany

Programmer
Aug 27, 2004
72
LV
i always used this code:

Memo1.Lines.Add(IdHTTP1.Get('
to get HTML code, but now appears error "HTTP/1.1 302 Found"

how to deal with that?
 
check your browser settings if it needs a proxy server or not

--------------------------------------
What You See Is What You Get
 
RFC2616 section 10

10.3.3 302 Found
The requested resource resides temporarily under a different URI. Since the redirection might be altered on occasion, the client SHOULD continue to use the Request-URI for future requests. This response is only cacheable if indicated by a Cache-Control or Expires header field.

The temporary URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).

So there SHOULD be a link to the current location of the default HTML page (since you didn't specify one).

Regards and HTH,
JGS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top