Aymen 385 Posted December 27, 2013 Author Report Share Posted December 27, 2013 Aymen does this "new cookies container" command still supported or discontinued? Since we already have "http cookies folder" for local cookies session. But i saw this command not on your "Aymen discountinued http commands" category http://s30.postimg.org/54v1vsahd/2013_12_28_0113.png If it still supported then where should i put this in my node? Before "http cookies folder" node? Nope it is discontinued , i'll add it to the discontinued category in the next update Quote Link to post Share on other sites
SaHiN 14 Posted December 27, 2013 Report Share Posted December 27, 2013 hi aymen, new cookies containers sample code? Quote Link to post Share on other sites
Bot-Factory 602 Posted December 28, 2013 Report Share Posted December 28, 2013 How do you distribute updates to this plugin? Am I supposed to receive an email automatically? Dan Quote Link to post Share on other sites
jamesfar 15 Posted December 28, 2013 Report Share Posted December 28, 2013 For multithreading do we still need to use "http container" command inside "Thread" command ? Because it is working ok if we NOT using "http container" commandbut got this error when using "http container" command inside "Thread" command : "<meta http-equiv="Content-Type" content="text/html; _ISO" /><script>alert('Cookies must be enabled!'); window.history.go(-1);</script>" anyone can help? And Does anyone has succeed using http post with TJ multithreading technique ini here ? How you structure your node? Quote Link to post Share on other sites
HelloInsomnia 1103 Posted December 29, 2013 Report Share Posted December 29, 2013 For multithreading do we still need to use "http container" command inside "Thread" command ? Because it is working ok if we NOT using "http container" command but got this error when using "http container" command inside "Thread" command : "<meta http-equiv="Content-Type" content="text/html; _ISO" /><script>alert('Cookies must be enabled!'); window.history.go(-1);</script>" anyone can help? And Does anyone has succeed using http post with TJ multithreading technique ini here ? How you structure your node? I always use the http container now, personally - might as well it's not going to harm anything (right Aymen??) And that code should work just take out the in new browser part. 1 Quote Link to post Share on other sites
Aymen 385 Posted December 29, 2013 Author Report Share Posted December 29, 2013 I always use the http container now, personally - might as well it's not going to harm anything (right Aymen??) And that code should work just take out the in new browser part. yea when you use the http container even with a single thread mode the cookies are disposed automatically ! so you don't have to worry about clearing cookies ! 1 Quote Link to post Share on other sites
TheBigWeb 40 Posted December 29, 2013 Report Share Posted December 29, 2013 Hi Aymen, I don't seem to be getting emails when an update is released? Quote Link to post Share on other sites
jamesfar 15 Posted December 29, 2013 Report Share Posted December 29, 2013 finally able to use this plugin but mostly failed when the response header are redirected anyone got succeed? Quote Link to post Share on other sites
Aymen 385 Posted December 29, 2013 Author Report Share Posted December 29, 2013 Hi Aymen, I don't seem to be getting emails when an update is released?updates are sent to the email you used when purchasing this plugin ! finally able to use this plugin but mostly failed when the response header are redirected anyone got succeed? i'm not sure i understand what you mean :/what error are you getting ? Quote Link to post Share on other sites
jamesfar 15 Posted December 29, 2013 Report Share Posted December 29, 2013 updates are sent to the email you used when purchasing this plugin ! i'm not sure i understand what you mean :/what error are you getting ? For example try to login to : https://app.payperpost.com/ use this credential as login info :u : lukatherdp@gmail.comp : 23Av4!KWp I always got this error : "Unable to connect to the remote server" or back to login page and says that the login info is incorrect even i can login perfectly via browser here is my code : plugin command("HTTP post.dll", "http cookies folder", "D:\\Cookies") plugin command("HTTP post.dll", "http auto redirect", "Yes") plugin command("HTTP post.dll", "http max redirects", 100) plugin command("HTTP post.dll", "http container") { set(#Login, $plugin function("HTTP post.dll", "$http post", "http://app.payperpost.com/login", "login%5Bemail%5D=angela@checkcarloans.com&login%5Bpassword%5D=m7Y2g1cj&commit=signup_advertiser", "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/4.0; InfoPath.2; SV1; .NET CLR 2.0.50727; WOW64)", "https://app.payperpost.com/", "23.19.92.124:29842:musdianto:p0G0gKh5", 100), "Global") load html(#Login) } Quote Link to post Share on other sites
jamesfar 15 Posted January 7, 2014 Report Share Posted January 7, 2014 For example try to login to : https://app.payperpost.com/ use this credential as login info :u : lukatherdp@gmail.comp : 23Av4!KWp I always got this error : "Unable to connect to the remote server" or back to login page and says that the login info is incorrect even i can login perfectly via browser here is my code : plugin command("HTTP post.dll", "http cookies folder", "D:\\Cookies") plugin command("HTTP post.dll", "http auto redirect", "Yes") plugin command("HTTP post.dll", "http max redirects", 100) plugin command("HTTP post.dll", "http container") { set(#Login, $plugin function("HTTP post.dll", "$http post", "http://app.payperpost.com/login", "login%5Bemail%5D=angela@checkcarloans.com&login%5Bpassword%5D=m7Y2g1cj&commit=signup_advertiser", "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/4.0; InfoPath.2; SV1; .NET CLR 2.0.50727; WOW64)", "https://app.payperpost.com/", "23.19.92.124:29842:musdianto:p0G0gKh5", 100), "Global") load html(#Login) } anyone? Quote Link to post Share on other sites
Walter1 8 Posted January 7, 2014 Report Share Posted January 7, 2014 Hi Aymen, Could you please take a peek at the 'http response status' ? I tested and tested and even when i check up on a url thats beeing 301/302 redirected or even non existent, it returns a 200 Thanks in advance! Quote Link to post Share on other sites
Aymen 385 Posted January 8, 2014 Author Report Share Posted January 8, 2014 anyone?Bare with me i'll try to check that out for you , next time you would need to open a new thread for that , so you get enough help! Hi Aymen, Could you please take a peek at the 'http response status' ? I tested and tested and even when i check up on a url thats beeing 301/302 redirected or even non existent, it returns a 200 Thanks in advance! make sure to disable http redirection and check again , if you are enabling redirection that may be the status of the last page you landed on 1 Quote Link to post Share on other sites
jamesfar 15 Posted January 8, 2014 Report Share Posted January 8, 2014 Bare with me i'll try to check that out for you , next time you would need to open a new thread for that , so you get enough help! OK. Waiting for you Aymen Quote Link to post Share on other sites
Aymen 385 Posted January 8, 2014 Author Report Share Posted January 8, 2014 OK. Waiting for you AymenSorry but it seems the http request is being blocked by the server , i keep getting error 404 !which is an odd error to get when sending http requests ! 1 Quote Link to post Share on other sites
jamesfar 15 Posted January 9, 2014 Report Share Posted January 9, 2014 Sorry but it seems the http request is being blocked by the server , i keep getting error 404 !which is an odd error to get when sending http requests ! I think it has to do with the Etag parameter from the server response But i don't know to handle that Quote Link to post Share on other sites
Fotis32 2 Posted January 17, 2014 Report Share Posted January 17, 2014 I have a question aymen. Well i am using the $html get fuction for scraping a site. Well the point is that i need to get the recaptcha_challenge_key. I cannot scrape the value with the $find regural expression because is not inside the return of the $http get. In other case if i do load html with the result and do right-click on the page area and select the "View Generated Source" it is inside. You know what i mean ? What i can do to get the same result on http get fuction with the "view generated code" on the html ? Quote Link to post Share on other sites
Aymen 385 Posted January 18, 2014 Author Report Share Posted January 18, 2014 I have a question aymen. Well i am using the $html get fuction for scraping a site. Well the point is that i need to get the recaptcha_challenge_key. I cannot scrape the value with the $find regural expression because is not inside the return of the $http get. In other case if i do load html with the result and do right-click on the page area and select the "View Generated Source" it is inside. You know what i mean ? What i can do to get the same result on http get fuction with the "view generated code" on the html ?sometimes you won't get the captcha image in the html code so you need to get it from the javascript codei have couple of video tutorials about that , check the totorials list or search this thread Quote Link to post Share on other sites
Fotis32 2 Posted January 18, 2014 Report Share Posted January 18, 2014 Yes thanks i found the videos... it working good now... Quote Link to post Share on other sites
Bot-Factory 602 Posted January 18, 2014 Report Share Posted January 18, 2014 Hello. I'm looking for an easy way to use HTTP Post to send an information to a webserver / PHP script.The script should take the info it get's from HTTP post and save it to a file on the webserver. So this is mainly a question about how this could be done on the webserver side rather than about the HTTP post plugin itself. But maybe someone has done something similar already? And has an example PHP script which could do stuff like that? If someone has an idea or an example how this could be done? Thanks in advance for your helpDan Quote Link to post Share on other sites
HelloInsomnia 1103 Posted January 18, 2014 Report Share Posted January 18, 2014 I assume it would be a text file?Try this: http://php.net/file_put_contents Quote Link to post Share on other sites
Bot-Factory 602 Posted January 18, 2014 Report Share Posted January 18, 2014 (edited) I assume it would be a text file? Try this: http://php.net/file_put_contents Thanks for that info. That part of the PHP script is already working. Creating a local file and saving data to it works fine on my webserver. The part where I struggle is receiving the information which will be sent via http post to my PHP script. Security is also a concern here, because this is running via the internet. And I want to avoid that someone who figures out the url and PHP script name can just flood it. So I need some form of protection as well. Edited January 18, 2014 by dan Quote Link to post Share on other sites
Bot-Factory 602 Posted January 18, 2014 Report Share Posted January 18, 2014 Maybe something like this: <html><body> <?php $info = $_POST['info']; echo "Info ". $info . " " $file = 'test.txt'; $current = file_get_contents($file); $current .= $info; file_put_contents($file, $current); ?> </body></html> Quote Link to post Share on other sites
HelloInsomnia 1103 Posted January 18, 2014 Report Share Posted January 18, 2014 I think you should upload it to a database then have the bot run a php file - the php file then handles everything server side so it takes care of the security issues. Quote Link to post Share on other sites
Aymen 385 Posted January 19, 2014 Author Report Share Posted January 19, 2014 Thanks for that info. That part of the PHP script is already working. Creating a local file and saving data to it works fine on my webserver. The part where I struggle is receiving the information which will be sent via http post to my PHP script. Security is also a concern here, because this is running via the internet. And I want to avoid that someone who figures out the url and PHP script name can just flood it. So I need some form of protection as well. you can use either $_POST['name'] , $_GET['name'] or $_REQUEST['name'] to send data using http requests , the easiest way is to use $_GET['name'] and then call something like this when sending a http request "http://website.com/file.php?name=data+here&name2=some+other+data+here"security part is easy toyou may block access to that file by IP , meaning allowing only selected IPs to access , this is a good usage if you are only sending data from a known server!another usage is to use secret keys or api keys so that people with no secret keys coulld not send data to the php file and you could use encryption like HMCA SHA1 to encrypt the data you are sending so even if people spying on your data won't have a chance to re-use it or try to crack how you are running stuff from the back end! 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.