colombeen Posted June 9, 2017 Share Posted June 9, 2017 (edited) Hi guys I'm having an issue with _INetGetSource... I've made an app that needs to get the source from an URL but the app needs to be run as another user. when it runs as the current user there are no issues, but when i run it as the other user that should be executing it, it seems like the function can't handle SSO and it just fails. When i run my IE directly as a different user it pops up for credentials. does anyone have any experience with this and is there a way to fix this? Greetz Colombeen Edited June 18, 2017 by colombeen Link to comment Share on other sites More sharing options...
Jefrey Posted June 10, 2017 Share Posted June 10, 2017 Can you show your code? Additionally, can you check if the code below works? Note that you will need my HTTP UDF on the script folder (take it here). #include 'HTTP.au3' $sUrl = "http://" ; put your URL here $sHTML = _HTTP_Get($sUrl) If @error Then MsgBox(0, "", "HTTP error " & @extended) Else MsgBox(0, "Content", $sHTML) EndIf My stuff Spoiler My UDFs _AuThread multithreading emulation for AutoIt · _ExtInputBox an inputbox with multiple inputs and more features · forceUTF8 fix strings encoding without knowing its original charset · JSONgen JSON generator · _TCPServer UDF multi-client and multi-task (run on background) event-based TCP server easy to do · _TCPClient_UDF multi-server and multi-task (runs on background) event-based TCP client easy to do · ParseURL and ParseStr functions ported from PHP · _CmdLine UDF easily parse command line parameters, keys or flags · AutoPHP Create documents (bills, incomes) from HTML by sending variables/arrays from AutoIt to PHP · (Un)Serialize Convert arrays and data into a storable string (PHP compatible) · RTTL Plays and exports to MP3 Nokia-format monophonic ringtones (for very old cellphones) · I18n library Simple and easy to use localization library · Scripting.Dictionary OOP and OOP-like approach · Buffer/stack limit arrays to N items by removing the last one once the limit is reached · NGBioAPI UDF to work with Nitgen fingerprint readers · Serial/Licensing system require license key based on unique machine ID from your users · HTTP a simple WinHTTP library that allows GET, POST and file uploads · Thread true AutoIt threads (under-dev) · RC4 RC4 encryption compatible with PHP and JS · storage.au3 localStorage and sessionStorage for AutoIt Classes _WKHtmlToX uses wkhtmlto* to convert HTML files and webpages into PDF or images (jpg, bmp, gif, png...) Snippets _Word_DocFindReplaceByLongText replace strings using Word UDF with strings longer than 255 characters (MSWord limit) rangeparser parser for printing-like pages interval (e.g.: "1,2,3-5") EnvParser parse strings/paths with environment variables and get full path GUICtrlStaticMarquee static text scrolling Random stuff Super Mario beep sound your ears will hurt Link to comment Share on other sites More sharing options...
colombeen Posted June 14, 2017 Author Share Posted June 14, 2017 sorry for the late response... i've been busy... after alot of testing it seems that it does work if I user https://username:password@example.com/webpage.svc the annoying part is that I need to ask for the username and password, which i was trying to avoid. I'll check you're suggestion and report back Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now