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. Writing to a file with CInternetSession

Writing to a file with CInternetSession

Scheduled Pinned Locked Moved C / C++ / MFC
questionsysadmin
2 Posts 2 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
    Gilfrog
    wrote on last edited by
    #1

    I am currently downloading a file from the web and checking info from it. CStdioFile *remotefile; CInternetSession mysession; remotefile = mysession.OpenURL (csUrl,1,INTERNET_FLAG_TRANSFER_BINARY|INTERNET_FLAG_RELOAD); if(!remotefile) return 0; My question is can i write to the file that i just opened and save it back on the web server. If this doesn't work is there another method if i want to write to a file over the web? Scott

    B 1 Reply Last reply
    0
    • G Gilfrog

      I am currently downloading a file from the web and checking info from it. CStdioFile *remotefile; CInternetSession mysession; remotefile = mysession.OpenURL (csUrl,1,INTERNET_FLAG_TRANSFER_BINARY|INTERNET_FLAG_RELOAD); if(!remotefile) return 0; My question is can i write to the file that i just opened and save it back on the web server. If this doesn't work is there another method if i want to write to a file over the web? Scott

      B Offline
      B Offline
      Big Art
      wrote on last edited by
      #2

      I have used CFtpConnection::PutFile(..) fn for that. But might also look a t CInternetFile::Write(..) Art

      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