Black Automation 20 Posted April 19, 2015 Report Share Posted April 19, 2015 Now When I use the below code it works just fine (SCG Socket Recorder) set(#poster, $plugin function("HTTP post.dll", "$http post", "https://twitter.com/i/profiles/update_profile_image", "authenticity_token={#authenticitytoken}&fileName=b.jpg&height=256&mediaId=589855740078268416&offsetLeft=0&offsetTop=0&page_context=home&scribeContext%5Bcomponent%5D=profile_image_upload&scribeElement=upload§ion_context=home&uploadType=avatar&width=256", "Mozilla/5.0 (Windows NT 6.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36", "https://twitter.com/", "", 20), "Global") But, as soon as i try to edit the mediaID & file name this no longer works..So how would one go about finding the "mediaID" before you try to upload the avatar? set(#mediaids, $plugin function("HTTP post.dll", "$xpath parser index", #poster, "//input[@name=\'media_ids\']",0, "value"), "Global")set(#mediaids, $plugin function("File Management.dll", "$Find Regex First", #poster, "(?<=\"media_ids\":\").*(?=\"\})"), "Global") Don't work because its trying to find these inside #poster before they exist. 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.