Mart 0 Posted January 18, 2015 Report Share Posted January 18, 2015 I can't seem to login to bing ads using http requests. You can login into bing ads with your microsoft (hotmail) account details: Please could someone take a look at this code for me: plugin command("HTTP post.dll", "http cookies folder", "C:\\")set(#login page, $plugin function("HTTP post.dll", "$http get", "https://login.live.com/ppsecure/post.srf?wa=wsignin1.0", "", "", "", ""), "Global")set(#cookie, $plugin function("HTTP post.dll", "$http cookie response"), "Global")set(#login_url, "https://login.live.com/ppsecure/post.srf?wa=wsignin1.0", "Global")plugin command("HTTP post.dll", "http cookies string", #cookie)plugin command("HTTP post.dll", "http set headers", "Set-Cookie", #cookie)set(#bing_login_ms, $plugin function("HTTP post.dll", "$http post", #login_url, "login=EMAIL%40ADDRESS&passwd=PASSWORDHERE&type=11&PPFT=ClgFK5JnCIIYUGXv2AbyimI*tC5eq4LukWzEjZgmHBG5gLhbF8kQshV8RFVykAJ*FQFo8UxuOzwtdtle5fP0RjXVdylXl9sK*3A%21WnNr5MG*pI0CdnZxfsIfOwkyUDss9B4dqYToViL3U*ryDY4KSNsHU2vktw1BZaXCBppojikoCQFp1u2ZBeCtVPgDT6Zt*zE61Ry6SJvpY0Rkc7562QuUPQ3DpoNXHZBilQlQaY4N&PPSX=PassportRN&idsbho=1&sso=0&NewUser=1&LoginOptions=3&i1=0&i2=1&i3=19745&i4=0&i7=0&i12=1&i13=0&i14=744&i15=2351&i17=0&i18=__Login_Strings%7C1%2C__Login_Core%7C1%2C", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0", "https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=12&ct=1421581413&rver=6.1.6206.0&wp=MBI_SSL&wreply=https:%2F%2Fsecure.bingads.microsoft.com%2FLogin%2FLive%3FskipMigrationFilter%3Dtrue&lc=1033&id=288120", "", ""), "Global")load html(#bing_login_ms) Quote Link to post Share on other sites
HelloInsomnia 1103 Posted January 22, 2015 Report Share Posted January 22, 2015 I'm not sure whats going on with the cookie thing exactly but this will help you get the PPFT: set(#PPFT, $find regular expression(#login page, "(?<=name\\=\\\"PPFT\\\"\\sid\\=\\\"[\\da-zA-Z][\\da-zA-Z][\\da-zA-Z][\\da-zA-Z][\\da-zA-Z]\\\"\\svalue\\=\\\").*?(?=\\\")"), "Global") set(#bing_login_ms, $plugin function("HTTP post.dll", "$http post", #login_url, "login={$plugin function("HTTP post.dll", "$url encode", #email)}&passwd={#password}&type=11&PPFT={#PPFT}&PPSX=PassportRN&idsbho=1&sso=0&NewUser=1&LoginOptions=3&i1=0&i2=1&i3=19745&i4=0&i7=0&i12=1&i13=0&i14=744&i15=2351&i17=0&i18=__Login_Strings%7C1%2C__Login_Core%7C1%2C", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0", "https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=12&ct=1421581413&rver=6.1.6206.0&wp=MBI_SSL&wreply=https:%2F%2Fsecure.bingads.microsoft.com%2FLogin%2FLive%3FskipMigrationFilter%3Dtrue&lc=1033&id=288120", "", ""), "Global") Quote Link to post Share on other sites
Mart 0 Posted August 3, 2015 Author Report Share Posted August 3, 2015 I will try that out thanks, I missed this reply Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.