This content has been marked as final. Show 3 replies
Google AJAX Search API
Thank you, YoGee
But i am not only want google search box.
Actually i want that if the user give any website url and he want to search its query only in its given site then tell me how can i pass the string to that site search box.
Actually i want that if the user give any website urlYou can't allow the user to pick any website at random because you need to know what parameters you need to provide that website in order to perform a search (you won't know how many parameters you need to send or what they are called).
and he want to search its query only in its given
site then tell me how can i pass the string to that
site search box.
When you know what websites you want to search the first thing to check is whether these websites have some API you can use (for example a web service), failing that type this into google (or risk the Sun search):
httpurlconnection post form site:java.sun.com
Be warned though this can get ugly and you are at the mercy of the websites you are querying (for example if they suddenly decide to change the form you are posting it will likely break your code)