Gravity Posted February 18, 2014 Posted February 18, 2014 (edited) Ok. Soo i changed my mind.. I want to use web request for login in my application . For guys that dont know . I am making application in which you login to application .And you have functions for vip or free . I setuped forum in which you can register . And i want to do when user is logging then it get response from site if id and password is right . Soo this code is right ? Global $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") $oHTTP.Open("GET", "testserver.com/login.php", False) $oHTTP.Send() $response= $oHTTP.ResponseText Edited February 18, 2014 by Gravity
Moderators JLogan3o13 Posted February 18, 2014 Moderators Posted February 18, 2014 You're asking if the code is right, which begs the question - have you tried it? If you're having a particular problem with the code, please give us a little more detail as to the error so we can help you troubleshoot. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Gravity Posted February 18, 2014 Author Posted February 18, 2014 I already don't tried it because i can't access pc and i am asking if this code is right.
Gravity Posted February 19, 2014 Author Posted February 19, 2014 Soo i tried it and it don't works . Can anyone help ?
Moderators JLogan3o13 Posted February 19, 2014 Moderators Posted February 19, 2014 "it don't works" doesn't tell us anything. Are you getting an error? What error checking have you put in place, so you can figure out just where the script fails? At minium you should have something like this: Global $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") If IsObj($oHTTP) Then $oHTTP.Open("GET", "testserver.com/login.php", False) If @error Then MsgBox(0, "", "Error on Open") Else $oHTTP.Send() If Not @error Then $response= $oHTTP.ResponseText EndIf EndIf "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Gravity Posted February 19, 2014 Author Posted February 19, 2014 "it don't works" . Mean that i dont get any error. But it doesn't check user login and pass
Moderators JLogan3o13 Posted February 19, 2014 Moderators Posted February 19, 2014 So add that error checking in, and try again. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Moderators JLogan3o13 Posted February 19, 2014 Moderators Posted February 19, 2014 I did, in post #5 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Gravity Posted February 19, 2014 Author Posted February 19, 2014 I am not very good in autoit . Because i am still learning it . But please can someone give me full code ? I know how to do all other things . But i dont get how to create login because there are no tutorials for autoit about this ...
Moderators JLogan3o13 Posted February 19, 2014 Moderators Posted February 19, 2014 You're not learning it, you're asking someone to barf up code for you. This should be a couple of steps for you: Copy the code I have in post #5. Change the URL to your URL (or post the URL here) Run the code to see where it errors. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Gravity Posted February 20, 2014 Author Posted February 20, 2014 Site is : http://letshackmv.forumk.biz/
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now