Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Http Connectivity

Http Connectivity

Scheduled Pinned Locked Moved C / C++ / MFC
c++comsysadminhelptutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Girish601
    wrote on last edited by
    #1

    Hello Friends Help is required from anybody who has done coding for http connectivity using VC++ 6.0 using MFC. Following is the scenario wherein i am trying to connect the site by authenticating the proxy server. Following are the steps which i am following, if i am work pls guide me out. CInternetSession *pSession; CHttpConnection *pConnection; CHttpFile *pFile; CString strObject; CString szAuthLine; BOOL bResult; DWORD dwRet; pSession= new CInternetSession (NULL,1,INTERNET_OPEN_TYPE_PRECONFIG,NULL,NULL,0); pConnection=pSession->GetHttpConnection (_T("http://www.codeproject.com"),1,808,"girish","girish2005"); pFile=pConnection->OpenRequest(NULL,strObject, NULL,1,NULL,NULL,NULL); szAuthLine="girish:girish2005"; pFile->AddRequestHeaders(szAuthLine, HTTP_ADDREQ_FLAG_ADD,strlen(szAuthLine)); bResult=pFile->SendRequest(szAuthLine,NULL,0); Following mentioned above is the code pls help me out. With Rgds Girish Software Developer

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups