Sign in to follow this  
Followers 0
russell

Is there a way to search a return

2 posts in this topic

Is there a way to search a return of a vaule like search $oReceived for a specific line? The below console writes what i need and the line is there but i want to put the line in a IF statement

$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("POST", "http://testsite/login.php" , False)
$oHTTP.SetRequestHeader("User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 4.0.20506)")
$oHTTP.SetRequestHeader("Referrer", "http://www.google.com")
$oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
$oHTTP.SetRequestHeader("Connection", "keep-alive")
$oHTTP.Send("user=test" & "&password=password")
$oReceived = $oHTTP.ResponseText

ConsoleWrite($oReceived &@CRLF)

muppet hands are so soft :)

Share this post


Link to post
Share on other sites



OOO wow lol mod please del this im an idiot. I found it


muppet hands are so soft :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0