mkeee
mkeee

Reputation:

Issue with fetching data from a server

I am getting a problem while fetching data. Its giving CFHTTPMessageGetResponseStatusCode(response) as 302. Can any one help me to solve this problem?

Upvotes: 1

Views: 214

Answers (1)

Piskvor left the building
Piskvor left the building

Reputation: 92752

Straight from the horse's mouth (RFC2616, sec.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.

In other words, it's a redirection: "what you're looking for is over there right now." Check the Location: response header - that's your new URL you need to retrieve.

Upvotes: 3

Related Questions