how to access to the secured http page?

how to access to the secured http page?

Post by soon-ta » Thu, 06 Mar 2003 17:12:39



Hi all.

I tried to access the secured http page in Pocket PC 2002
but I didn't find the method.

In desktop, I used the "SetOption()" function, and
accessed the page.
But, it still returned the error code.
401 - HTTP_STATUS_DENIED

Is it impossible or not?
Thank you.

Souce code is bellow.
//////////////////////////////////////////////////////////
TRY {
 pFile = (CHttpFile*)pSession->OpenURL( sURL, 0,
INTERNET_FLAG_TRANSFER_BINARY );
REREQUEST :
 pFile->SendRequest();
 pFile->QueryInfoStatusCode( dwStatus );

 switch (dwStatus) {
  case HTTP_STATUS_DENIED:     //Server Authentication
Required
        // Insert code to set strUsername and strPassword
 if( bCheckLogin ) {
  if( pFile )   delete pFile;
  bConnectFail = TRUE;
  break;
 }

 pFile->SetOption( INTERNET_OPTION_USERNAME, szUserName,
strlen(szUserName)+1);
 pFile->SetOption( INTERNET_OPTION_PASSWORD, szPassword,
strlen(szPassword)+1);

 pFile->SendRequest();
 pFile->QueryInfoStatusCode( dwStatus );
 bCheckLogin=TRUE;

 goto REREQUEST;
 break;

 case HTTP_STATUS_OK:  
 break;

 default :
 if( pFile )    delete pFile;
 bConnectFail = TRUE;
 break;
 }

Quote:}

 
 
 

1. I can display secure pages (HTTPS) but not HTTP pages

I bought and installe XP home edition.

In the IE I am not able to connect to http:// pages, but I
can connect to https:// pages.

I have reset all options to standard (zones, cookies etc.).
When I use another browser (ie opera) everithing works
fine.

I used the wizzrd to configure the network,

I tested the ADSL hub/router, etc.

I conclude : my connections are OK but something prevents
the use of non secure pages.

Any suggestions?

brdi

2. ram above 512mb get you anything?

3. Using paged Datagrids in HTTPS secured pages

4. Codes?

5. IE6.0 displays https pages but not http pages

6. Windows media player

7. Secure https pages do not load

8. Backupsystems

9. Access HTTPS secure websites--A Fix!?!

10. Can't Access https:// (secure) websites

11. Cannot access secure sites (https://abc.efg.com)

12. unable to access secure sites (https)

13. can not access https secure web sites