Forum Registration Disabled - Send a request to support@scriptbasic.org to join the forum.User GuideDevelopers Guide
curl::option CURL,"COOKIEFILE","cookies.txt"
Import "c:\scriptbasic\include\curl.bas" Import "c:\scriptbasic\include\cio.bas"rem Login & Pass username = "admin"password = "password"rem web Siteurl = "http://localhost/wordpress/"rem Directorydirectorio ="c:\\scriptbasic\\wordpress\\"cookie = directorio & "\\cookie.txt"rem Form Datapostdata = "log=" & $username & "&pwd=" & $password & "&wp-submit=Log%20In&redirect_to=" & url & "wp-admin/&testcookie=1"CURL = curl::init()curl::Option CURL,"CONNECTTIMEOUT",6curl::option CURL,"FRESH_CONNECT"curl::option Curl,"BUFFER_SIZE",1024curl::option CURL,"FOLLOWLOCATION"curl::option CURL,"MAXREDIRS",7curl::option CURL,"REFERER",url & "wp-login.php"curl::option CURL,"USERAGENT","Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36"curl::option CURL,"COOKIEFILE",cookie curl::option CURL,"URL",url & "wp-login.php"curl::option Curl,"POSTFIELDS",postdatarem File curl::option CURL,"FILE",directorio & "file.txt"rem VERBOSEcurl::option Curl,"VERBOSE"curl::perform CURLcurl::finish CURLrem