DUNGYEUANH Posted May 27, 2012 Share Posted May 27, 2012 (edited) I found a way to change the user agent value here, but I do not know how to use it, someone can help me ? Edited May 27, 2012 by DUNGYEUANH Link to comment Share on other sites More sharing options...
JohnOne Posted May 27, 2012 Share Posted May 27, 2012 (edited) Func userAgent($agent) $agentLen = StringLen($agent) Dim $tBuff = DllStructCreate("char["&$agentLen&"]") DllStructSetData($tBuff, 1, $agent) $chk_UrlMkSetSessionOption = DllCall("urlmon.dll", "long", "UrlMkSetSessionOption", "dword", 0x10000001, "ptr", DllStructGetPtr($tBuff), "dword", $agentLen, "dword", 0) EndFunchttp://autoitscript.com/forum/topic/1229...p-using-urlmondll-please/page_EDIT:But don't forget HttpSetUserAgent() Edited May 27, 2012 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
DUNGYEUANH Posted May 28, 2012 Author Share Posted May 28, 2012 Thanks for the help but it did not work for me. Link to comment Share on other sites More sharing options...
JohnOne Posted May 28, 2012 Share Posted May 28, 2012 OK. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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