Jump to content
Sign in to follow this  
mikeytown2

InetGet with http passwords

Recommended Posts

InetGet("http://user:pass@mysite.com/file.txt", "c:\file.txt")

Doesn't seem to work when i use a username and password. Does this function only work with the ftp protocol? I also tried it using https as well. My web server is running IIS. Any Ideas?

Also how would i download a file directly into an array. Could i use the IniReadSection on the downloaded array then?

Thanks

-Mike

Share this post


Link to post
Share on other sites

InetGet("http://user:pass@mysite.com/file.txt", "c:\file.txt")

Should work with http as well. Try it in your IE. If it does not work there,

check the configuration of your Webserver. Most probably your are not

using HTTP basic authentication on the server, which I believe is what

InetGet does when you use the above syntax. I think, "Integrated Authentication"

(NTLM) does not work with InetGet.

Also how would i download a file directly into an array. Could i use the IniReadSection on the downloaded array then?

Check out this thread

_GetSource(), From an URL

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...