Pete_UK 9 Posted September 2, 2014 Report Share Posted September 2, 2014 No worries Dan.I'll let you know when i'm stuck. Quote Link to post Share on other sites
orbital 15 Posted September 5, 2014 Report Share Posted September 5, 2014 Hi Dan, You talked about in your multi-threading video about making the http post code fault tolerant and putting in checks. I tried to do that with your SetValue and GetValue but it isn't working and was wondering if you could take a look at it. When I have confirmed that "post" contains "Sign-up successful" , when I get the value of confirm it is empty. SetValue("confirm", $find regular expression($GetValue("post"), "Sign-up successful")) Even when I try a $contains it still doesn't work if($contains($GetValue("post"), "Sign-up Successful")) { then { } else { } } Any thoughts on what might be going wrong here? Quote Link to post Share on other sites
Bot-Factory 602 Posted September 5, 2014 Author Report Share Posted September 5, 2014 Hi Dan, You talked about in your multi-threading video about making the http post code fault tolerant and putting in checks. I tried to do that with your SetValue and GetValue but it isn't working and was wondering if you could take a look at it. When I have confirmed that "post" contains "Sign-up successful" , when I get the value of confirm it is empty. SetValue("confirm", $find regular expression($GetValue("post"), "Sign-up successful")) Even when I try a $contains it still doesn't work if($contains($GetValue("post"), "Sign-up Successful")) { then { } else { } } Any thoughts on what might be going wrong here? Well, there could be a lot of stuff wrong in your code. Did it save the html code to the file correctly? Did it load the html code correctly? Does it contain anything? You should use the normal troubleshooting procedures. Add alerts and stop script commands and try to trace the error.You have to get it working correctly without multithreading. Because with multiple threads it's a lot more complex to trace the stuff. Dan Quote Link to post Share on other sites
orbital 15 Posted September 5, 2014 Report Share Posted September 5, 2014 Well, there could be a lot of stuff wrong in your code. Did it save the html code to the file correctly? Did it load the html code correctly? Does it contain anything? You should use the normal troubleshooting procedures. Add alerts and stop script commands and try to trace the error.You have to get it working correctly without multithreading. Because with multiple threads it's a lot more complex to trace the stuff. DanThanks Dan for the reply. Yes, I did go through all those troubleshooting steps but for some reason, I played around with some variables and then went back to the $GetValue and it is working now. It isn't the first time something strange has happened with ubot Quote Link to post Share on other sites
Bot-Factory 602 Posted September 5, 2014 Author Report Share Posted September 5, 2014 It isn't the first time something strange has happened with ubot I know exactly what you mean Quote Link to post Share on other sites
giganut 109 Posted September 16, 2014 Report Share Posted September 16, 2014 Hello Dan, I'm getting a error. The video tutorial I'm using is the "Video16-Google-oAuth-Part1" Here is the error I'm getting. I see this error is caused by: If the user has not yet approved the request, the response will appear as follows: { "error" : "authorization_pending" }I have sucsessfuly completed the first step, so I don't see how I'm getting this error. HTTP Plugin SETup Url: https://accounts.google.com/o/oauth2/tokenParameters: client_id={CLIENT ID}&client_secret={CLIENT SECRET}&code={Device Code}&grant_type=http://oauth.net/grant_type/device/1.0How do I fix this? Quote Link to post Share on other sites
Bot-Factory 602 Posted September 16, 2014 Author Report Share Posted September 16, 2014 Hello Dan, I'm getting a error. The video tutorial I'm using is the "Video16-Google-oAuth-Part1" Here is the error I'm getting. I see this error is caused by: If the user has not yet approved the request, the response will appear as follows: { "error" : "authorization_pending" }I have sucsessfuly completed the first step, so I don't see how I'm getting this error. HTTP Plugin SETup Url: https://accounts.google.com/o/oauth2/tokenParameters: client_id={CLIENT ID}&client_secret={CLIENT SECRET}&code={Device Code}&grant_type=http://oauth.net/grant_type/device/1.0How do I fix this? Hello. The authorization of the request is the most complex part of the whole procedure. There are multiple http post / get commands to execute to make this work. And it might be that Google is changing URLs or parameters every day. The tutorial is to show you the process how you have to analyze the different requests and what to look for. So it always might be that something changes. But after watching the complete video you should be able to filter out the correct http requests in the the sniffer. And then reproduce those requests step by step with the http plugin. It's hard to say where the error is without seeing the complete code and looking at every single http request. Have you looked at the fiddler trace? And compare one successful authorization (manual via browser) with the unsuccessful authorization via ubot?Can you see a difference? Is there a missing header? Or an additional request? Have you seen a different reply from the google server as response to one of your requests? I would need a lot more informations to help you. The google oAuth example is one of the more complex ones. So I can't give you a simple solution :-(But if you send me some more details, I can definitely take a look. Best would be via PM or Email: dan(AD)bot-factory.com Dan 1 Quote Link to post Share on other sites
giganut 109 Posted September 16, 2014 Report Share Posted September 16, 2014 Hello. The authorization of the request is the most complex part of the whole procedure. There are multiple http post / get commands to execute to make this work. And it might be that Google is changing URLs or parameters every day. The tutorial is to show you the process how you have to analyze the different requests and what to look for. So it always might be that something changes. But after watching the complete video you should be able to filter out the correct http requests in the the sniffer. And then reproduce those requests step by step with the http plugin. It's hard to say where the error is without seeing the complete code and looking at every single http request. Have you looked at the fiddler trace? And compare one successful authorization (manual via browser) with the unsuccessful authorization via ubot?Can you see a difference? Is there a missing header? Or an additional request? Have you seen a different reply from the google server as response to one of your requests? I would need a lot more informations to help you. The google oAuth example is one of the more complex ones. So I can't give you a simple solution :-(But if you send me some more details, I can definitely take a look. Best would be via PM or Email: dan(AD)bot-factory.com Dan Thank you Dan for the detailed response, I was the one that created the problem (User Error) I'm also automating the proses at the same time. Thanks for the great tutorials. Quote Link to post Share on other sites
giganut 109 Posted October 3, 2014 Report Share Posted October 3, 2014 Hello Dan, do you think you could add a tutorial for, How to use JSON Expressions? Quote Link to post Share on other sites
Bot-Factory 602 Posted October 4, 2014 Author Report Share Posted October 4, 2014 Hello Dan, do you think you could add a tutorial for, How to use JSON Expressions? Hi. Do you have an example of where you struggle exactly? Do you mean extracting data from a response that is in JSON format?Or generating a http request where you have to send data in that format? Dan Quote Link to post Share on other sites
giganut 109 Posted October 5, 2014 Report Share Posted October 5, 2014 Hi. Do you have an example of where you struggle exactly? Do you mean extracting data from a response that is in JSON format?Or generating a http request where you have to send data in that format? Dan Sorry about not being clear with my question, this is what I need to learn: extracting data from a response that is in JSON format. Quote Link to post Share on other sites
Bot-Factory 602 Posted October 5, 2014 Author Report Share Posted October 5, 2014 Sorry about not being clear with my question, this is what I need to learn: extracting data from a response that is in JSON format.There are multiple ways to do that.Regex is probably the quickest one if you just need one specific value which is not there multiple times. But you also can use some of the plugins. XML plugin from aymen has a json to xml converter.Or you can use his json parser plugin as well. It really depends on what data you need to extract. Dan Quote Link to post Share on other sites
giganut 109 Posted October 5, 2014 Report Share Posted October 5, 2014 Thank you dan for your responce, I will just use the XML plugin and then extract it with regular expressions. The data I'm trying to extraxt is the licence table from ubot locker through the locker API. Quote Link to post Share on other sites
Bot-Factory 602 Posted October 7, 2014 Author Report Share Posted October 7, 2014 Bonus Video 6 Added Proxybonanza IP Add / Delete via HTTP Plugin Go to: http://www.bot-factory.com Login and then navigate to Purchase History 1 Quote Link to post Share on other sites
giganut 109 Posted October 7, 2014 Report Share Posted October 7, 2014 Hey Dan thanks for the added videos, you rock! I have learned so much from your Tutorial Video Series. I got my return back on this Series almost immediately. Anyone looking to expand into the HTTP plugin thats on the fence about buying this Series should act now, dan keeps adding more and more videos that are worth loads of money. This has deffinity taken me to the next leval without a dought. Quote Link to post Share on other sites
Pete_UK 9 Posted October 8, 2014 Report Share Posted October 8, 2014 Nice one Dan. I see you using UB v5 too nice. Quote Link to post Share on other sites
Bot-Factory 602 Posted October 8, 2014 Author Report Share Posted October 8, 2014 Nice one Dan. I see you using UB v5 too nice.It's actually V5.5 :-) I did a lot of beta tests and the 5.5 release is running fine for me. And the improved loading time is one of the main reasons for me to switch. As long as everything else is similar or better than v4, I'm fine with the switch. Http plugin also works fine with 5.5. Threading is fixed as well in 5.5 so I think I'm ready for the switch. Dan Quote Link to post Share on other sites
Pete_UK 9 Posted October 8, 2014 Report Share Posted October 8, 2014 It's actually V5.5 :-) I did a lot of beta tests and the 5.5 release is running fine for me. And the improved loading time is one of the main reasons for me to switch. As long as everything else is similar or better than v4, I'm fine with the switch. Http plugin also works fine with 5.5. Threading is fixed as well in 5.5 so I think I'm ready for the switch. DanThat great to hear Dan. I'm looking forward to it's release. Quote Link to post Share on other sites
arunner26 51 Posted October 8, 2014 Report Share Posted October 8, 2014 It's actually V5.5 :-) I did a lot of beta tests and the 5.5 release is running fine for me. And the improved loading time is one of the main reasons for me to switch. As long as everything else is similar or better than v4, I'm fine with the switch. Http plugin also works fine with 5.5. Threading is fixed as well in 5.5 so I think I'm ready for the switch. DanYes, that sounds good Dan. Any idea when UBOT will release v5.5? Quote Link to post Share on other sites
giganut 109 Posted October 8, 2014 Report Share Posted October 8, 2014 It's actually V5.5 :-) I did a lot of beta tests and the 5.5 release is running fine for me. And the improved loading time is one of the main reasons for me to switch. As long as everything else is similar or better than v4, I'm fine with the switch. Http plugin also works fine with 5.5. Threading is fixed as well in 5.5 so I think I'm ready for the switch. Dan You just made my day with that comment, glad to here that v.5.5 is up to par. Quote Link to post Share on other sites
jamesfar 15 Posted October 8, 2014 Report Share Posted October 8, 2014 Does most of plugin works on v5.5 Dan? What plugin have you tried and works ok on v5.5 ? Quote Link to post Share on other sites
orbital 15 Posted October 8, 2014 Report Share Posted October 8, 2014 That great to hear Dan. I'm looking forward to it's release.I got an update notification and updated. Quote Link to post Share on other sites
Bot-Factory 602 Posted October 8, 2014 Author Report Share Posted October 8, 2014 Hi Guys. I have answered some of the questions that are not related to the HTTP tutorials via PM. Please let's focus on the HTTP plugin tutorials in this thread. If you have other stuff in mind, please feel free to send me PM. I'm always happy to help guys. CheersDan Quote Link to post Share on other sites
oneano 8 Posted October 9, 2014 Report Share Posted October 9, 2014 In Video 9 Wufoo you use $http upload and File to upload you set for a blank file. This does not work for me, I get the same error. What is going on here? Quote Link to post Share on other sites
Bot-Factory 602 Posted October 9, 2014 Author Report Share Posted October 9, 2014 In Video 9 Wufoo you use $http upload and File to upload you set for a blank file. This does not work for me, I get the same error. What is going on here? Please send me a PM with your code example. And I'll try to help you.Dan 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.