CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,626

    Re: Access a username/password protected url through C++

    checking presense of a file "sort of" requires you to read it with HTTP. it might work with just the "HEAD" verb rather than the "GET" verb, but it depends which http server software you're using.

    WinInet requires DLL's as well, but they're preinstalled on all versions of windows since Win2000. on something before Win2000 it won't work.
    But your app will also need other system dlls, so self contained.. yes, if that's what you mean.

  2. #17
    Join Date
    Oct 2014
    Posts
    11

    Re: Access a username/password protected url through C++

    ****!! It is so easy on Mac OS. I made it work quite fast (even I being an amateur) without any additional .dll files.
    So, if I use WinInet, I can make it work without the user having to manually add any more .dll files?

  3. #18
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Access a username/password protected url through C++

    Quote Originally Posted by rui_mac View Post
    ****!! It is so easy on Mac OS. I made it work quite fast (even I being an amateur) without any additional .dll files.
    So, if I use WinInet, I can make it work without the user having to manually add any more .dll files?
    You don't need to be concerned about dlls that get installed on Windows by default. The dlls needed for WinInet come installed on Win2000 and higher.

  4. #19
    Join Date
    Oct 2014
    Posts
    11

    Re: Access a username/password protected url through C++

    My main issue is to find code samples of how to access an protected url using WinInet and what to include in my code.
    I'm a Mac OS X Xcode guy and I really only use Windows to compile my plugins to that platform. So, everything in Windows is a bit foreign to me.

  5. #20
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,633

    Re: Access a username/password protected url through C++

    You should try with open Method (IXMLHTTPRequest)
    Best regards,
    Igor

  6. #21
    Join Date
    Oct 2014
    Posts
    11

    Re: Access a username/password protected url through C++

    Thank you. I will give it a try.

  7. #22
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,633

    Re: Access a username/password protected url through C++

    You might start trying with JScript to see if the approach really works, then you could implement it in C++.
    Best regards,
    Igor

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured