New topic: 

Finding HTTP code in a source.

<http://forums.realsoftware.com/viewtopic.php?t=31753>

       Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic         Author  
Message       >>Piggeh<<           Post subject: Finding HTTP code in a 
source.Posted: Mon Dec 28, 2009 1:24 pm                               
Joined: Thu Aug 23, 2007 7:23 pm
Posts: 16
Location: Candy Land              Hello 


I'm trying to isolate a string of http code from my PageReceived.
here is the HTTP source:
Code:<form action="robbery.php"  method="POST">    <select name="mission[1]" 
size="1" class="input">
<option value="70a983f7073680e319b4995c30021910">10 minutes</option>
<option value="80145cdca2c055a6ada7982aff551d12">20 minutes</option>
<option value="205ecc18cb8ff1c20fd7f083f3b80825">30 minutes</option>
<option value="4dd7f9bbff9f633b3b6ce19b441e6d9b">40 minutes</option>

<option value="c32088062238bb756f49c1f454a2d3fd">50 minutes</option>
<option value="ebeb7b2aa4d38ca3859a42d6757d0097">60 minutes</option>
<option value="f3ec6d4fcea75e67d60f9e571351c5c2">70 minutes</option>
<option value="5af2033e8eed7344d491f6264b233913">80 minutes</option>
<option value="71611c50289de040c9cd3ec33de4d930">90 minutes</option>
</select>

<input type="hidden" name="mcp" value="1">
<input type="submit" class=input name="b1" value="Go!">
</form>

The code I'm trying to isolate is Code:70a983f7073680e319b4995c30021910which is 
located between <option value=" and ">10 minutes</option>.

Then I need to place it here:Code:Dim form as Dictionary

form = New Dictionary
form.value("mission[1]") = //The isolated code
form.value("mcp") = "4324"
form.value("b1") = "Go!"
httpsocket1.setFormData form

httpsocket1.post("http://xxxxxx.org/xxxxxx/xxxxx.php";)


Can anyone help? I'm a bit lost.     
_________________
I like Pie .  
                            Top               kendoll           Post subject: 
Re: Finding HTTP code in a source.Posted: Mon Dec 28, 2009 1:37 pm              
                 
Joined: Mon Jul 17, 2006 10:39 am
Posts: 1578              Personally, I'd use a regular expression with a 
substring to parse it out.     
_________________
Kenneth McCleary
k...@upshiftcs.com  
                            Top               qbap           Post subject: Re: 
Finding HTTP code in a source.Posted: Mon Dec 28, 2009 2:54 pm                  
             
Joined: Fri Oct 02, 2009 1:02 pm
Posts: 25
Location: POLAND              Hello,

in one of my tutorials I shared a method to doing this kind of stuff 

http://realbasic.tutspolis.com/tutorial ... realbasic/     
_________________
web: http://realbasic.tutspolis.com/  
                            Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

rbforumnotifier@monkeybreadsoftware.de

Reply via email to