Praney Behl 314 Posted May 8, 2011 Report Share Posted May 8, 2011 I am trying to work with "Navigate with postdata" command but can't really crack it. I am wondering if anyone here, anyone at all have used it before and can probably post a working example of it, I would really appreciate it. Some help needed guys, gals, mods and Admins, PLEASE! Thanks, Praney Quote Link to post Share on other sites
Praney Behl 314 Posted May 8, 2011 Author Report Share Posted May 8, 2011 Hmm, seems like no has played with it too. Maybe I'll soon do a tutorial if not John. I was able to do a few think using postdata with help of John, Thanks to him. Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted May 8, 2011 Report Share Posted May 8, 2011 I havent been able to mess with it much let. but would like to learn the power it might have. Quote Link to post Share on other sites
Praney Behl 314 Posted May 15, 2011 Author Report Share Posted May 15, 2011 I am having big time issues in using it with Wordpress login. Far out! Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted May 15, 2011 Report Share Posted May 15, 2011 do you have it posting at all? is there any tutorials on the feature? Quote Link to post Share on other sites
Praney Behl 314 Posted May 15, 2011 Author Report Share Posted May 15, 2011 Tj I have been able to some using it, but not Wordpress, which is important for me as I am trying to have a grip on my network of sites. But Wordpress uses session control using cookies, and I am still dragging on it. I CAN'T get it to work on Wordpress, I can create accounts on W0rdpress.c0m but login is driving me nuts. I guess I'll create captcha solving using a third party app, see I am able to make it work. Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted May 16, 2011 Report Share Posted May 16, 2011 are you trying to use nav with post data for login or for posting comments? if for login i would use the normal way of fill fields. but if for instance you need to post data to a page that is from another page then nav with post data should work. for instance if I have a php page that did the following <?php if((isset($_POST['action'])) && ($_POST['action'] == "play")) { // Do something here if POST data is correct echo "Action equals play"; }else{ // Else state is not correct echo "Action not set, POST data not posted"; } ?> Using that script nav with POST data 'action' with data set as 'play' Should echo that it was recieved correct. However how would you use the Nav with Post data to send that action is play TJ Quote Link to post Share on other sites
Praney Behl 314 Posted May 16, 2011 Author Report Share Posted May 16, 2011 TJ, thanks for your help mate, I am able to login into some other sites. But, I think it is the JS that is stopping me from doing it. I got a genius helping me here. Let see how it can be dealt. Quote Link to post Share on other sites
UJohn 0 Posted June 8, 2011 Report Share Posted June 8, 2011 Hi, I'm trying too to use navigate with postdata. It's supposed to send a POST request with the data in a query format ie. a=1&b=2 ...right? The server I'm trying to post to answers: HTTP 405 : HTTP GET method not supported by this URL (Apache Tomcat/6.0.29) How can be?? Thanks! Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted June 8, 2011 Report Share Posted June 8, 2011 Hi, I'm trying too to use navigate with postdata. It's supposed to send a POST request with the data in a query format ie. a=1&b=2 ...right? The server I'm trying to post to answers: HTTP 405 : HTTP GET method not supported by this URL (Apache Tomcat/6.0.29) How can be?? Thanks! it wont format the URL in that manner. if you wnt to achive this that way use the navigate node with yoursite.com/?a=1&b=2 then you can get the information with $_REQUEST[a] etc.. the Post method hasn't really been fully explained anywhere in forums or tutorials yet.Maybe Seth or Eddie can shed some light as to how it works TJ Quote Link to post Share on other sites
Praney Behl 314 Posted June 11, 2011 Author Report Share Posted June 11, 2011 Hi, I'm trying too to use navigate with postdata. It's supposed to send a POST request with the data in a query format ie. a=1&b=2 ...right? The server I'm trying to post to answers: HTTP 405 : HTTP GET method not supported by this URL (Apache Tomcat/6.0.29) How can be?? Thanks! Do you have a link/webpage to wher you are trying to post? Quote Link to post Share on other sites
k1lv9h 76 Posted June 11, 2011 Report Share Posted June 11, 2011 For my testing I am using this: Used the following PHP code to dump the post data and request data values.<?php echo "From test-postdata.php<br>"; echo "<br>Print POST Array:<br>"; foreach ($_POST as $key => $keypostvalue) { echo "key >".$key."< value >".$keypostvalue."< --<br>"; } echo "Print REQUEST Array:<br>"; foreach ($_REQUEST as $key => $keypostvalue) { echo "key >".$key."< value >".$keypostvalue."< --<br>"; } echo "End of post/request output<br>" ?> Sample of post data method using php and curl.<?php $urltopost = "http://yourownhost/test-postdata.php"; $datatopost = array ( "firstname" => "John", "lastname" => "Smith", "email" => "my@email.com", ); $ch = curl_init ($urltopost); curl_setopt ($ch, CURLOPT_POST, true); curl_setopt ($ch, CURLOPT_POSTFIELDS, $datatopost); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true); $returndata = curl_exec ($ch); echo "<br>php-postdata-curlgen.php<br>"; echo $returndata; ?> My test "navigate with postdata" bot test-postdata.ubot The output from the post data and request data value dump.Post data using PHP and curl TEST output: php-postdata-curl.phpFrom test-postdata.php Print POST Array:key >firstname< value >Mike< --key >lastname< value >Lopez< --key >email< value >my@email.com< --Print REQUEST Array:key >firstname< value >Mike< --key >lastname< value >Lopez< --key >email< value >my@email.com< --End of post/request output The above output is what I expected for PHP and curl TEST. Ubot "navigate with postdata" TEST output: From test-postdata.php Print POST Array:Print REQUEST Array:End of post/request output The above output is not what I expected for Ubot "navigate with postdata" TEST. I did retest my Ubot "navigate with postdata" after it was compiled. The compiled Ubot "navigate with postdata" test output was the same as the uncompiled. I don't see anything wrong with my Ubot "navigate with postdata" test bot. Kevin 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.