|
/* 쿠키 */
NMHTTP->Get(URL);
AnsiString HtmlCode = NMHTTP->CookieIn ;
if(NMHTTP->CookieIn == "") {
AnsiString AnID, APass;
InputQuery("Authentication required", "Enter a user ID", AnID);
InputQuery("Authentication required", "Enter a password", APass);
NMHTTP->HeaderInfo->UserId = AnID;
NMHTTP->HeaderInfo->Password = APass;
ShowMessage("Authentication information in place, please retry the previous command");
if (OpenDialog1->Execute())
{
NMHTTP->OutputFileMode = TRUE;
NMHTTP->Put(URL, OpenDialog1->FileName);
NMHTTP->OutputFileMode = FALSE;
}
}
이렇케 해서... 쿠키가 안 보일땐... 다시 서버에 쓰는데요.... 자꾸..
Put하는 여기서... 에러가 납니다...
NMHTTP->Put(URL, OpenDialog1->FileName);
에러 메시지는 다음과 같습니다.
/* 쿠키 */
NMHTTP->Get(URL);
AnsiString HtmlCode = NMHTTP->CookieIn ;
if(NMHTTP->CookieIn == "") {
AnsiString AnID, APass;
InputQuery("Authentication required", "Enter a user ID", AnID);
InputQuery("Authentication required", "Enter a password", APass);
NMHTTP->HeaderInfo->UserId = AnID;
NMHTTP->HeaderInfo->Password = APass;
ShowMessage("Authentication information in place, please retry the previous command");
if (OpenDialog1->Execute())
{
NMHTTP->OutputFileMode = TRUE;
NMHTTP->Put(URL, OpenDialog1->FileName);
NMHTTP->OutputFileMode = FALSE;
}
}
이렇케 해서... 쿠키가 안 보일땐... 다시 서버에 쓰는데요.... 자꾸..
Put하는 여기서... 에러가 납니다...
NMHTTP->Put(URL, OpenDialog1->FileName);
에러메시지는 다음과 같습니다.
Project Browser.exe raised exception class EFCreateError with message
'Cannot create file HTTP/1.1 200 OK
Date:Fri, 25 May 2001 03:49:36 GMT
.
.
.
.
Content-Type:text/html
: Process stopped. Use Step or Run to continue
참, 그리구요... 패스워드를 입력 받을 땐... 혹... *******로 보이게 하는 법 아시나요? 패스워드가 그냥 보이네요... 쩝...
|