BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   GET data httpconnection - help (http://www.blackberryforums.com/developer-forum/245058-get-data-httpconnection-help.html)

jbstevens 02-17-2011 11:24 AM

GET data httpconnection - help
 
I'm trying to search for specific "text" on a URL. I've got a basic undestanding and (after working with httpdemo) i have been able to link to the website I'm wanting. Can someone please help me with the code on "searching a URL for specific text"? I've got an input box for the user to type in the desired text, I just don't know how to search the URL for it. Thanks guys.
Posted via BlackBerryForums.com Mobile

Dougsg38p 02-17-2011 02:23 PM

Re: GET data httpconnection - help
 
You'll need to get the content of the page (HTML) as a string or a byte array, then search for the value.

I would suggest getting it as a string - then you can use the string search methods that are built into the String class.

jbstevens 02-17-2011 10:45 PM

Quote:

Originally Posted by Dougsg38p (Post 1701983)
You'll need to get the content of the page (HTML) as a string or a byte array, then search for the value.

I would suggest getting it as a string - then you can use the string search methods that are built into the String class.

Posted via BlackBerryForums.com Mobile

jbstevens 02-19-2011 12:27 PM

Re: GET data httpconnection - help
 
Can someone please post a sample code using the httpconnection and string search method. Thanks
Posted via BlackBerryForums.com Mobile

Dougsg38p 02-19-2011 02:44 PM

Re: GET data httpconnection - help
 
I gues you can start out by looking at the HTTP demo source that ships with your RIM development tools.


All times are GMT -5. The time now is 12:41 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.