0

Using HttpSendRequest() I am able to navigate to web pages from MFC. Some URLs I am trying to visit are not valid, but certain servers, instead of sending error 404, are just redirecting to another page.

I am not sure how I can detect this redirection .

4

1 に答える 1

0

404「URL がまったく不明」の HTTP ステータス コードです。Redirect は別のステータス コードです301。経由でこれを取得しHTTP_QUERY_STATUS_CODEます。

ところで、これは MFC ではなく、基本的な WinInet 機能です。

于 2012-11-06T09:37:09.290 に答える