Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URL using C++

Status
Not open for further replies.

madhosh

Programmer
Aug 10, 2001
14
Guys
Thanks for your help.. I need to know how URL is constructed dynamically and sent to a web server using C++.
Iam trying to write a program which will search the web and return the result( a small search engine). I need to know how a url can be constructed dynamically using search parameters specified.
For ex
if i search for "New YORK" on url constructed is
"I want to do this using C++.
Any help is appreciated.
 
In your example above:

"
Tells this to the browser:
"Go to ask for the file called 'search' and pass to the server the variables"
q=%22New+York%22 (where %xx is the ascii caracter coresponding to hexa reprezentation of xx - here is 44)
btnG=Google+Search (where + always means always a space)

So the rules are:
? - separates the name of the file required from the parameters passed to the server
& - separates the parameters between themselves
%xx - stands for a hexa ASCII reprezatation of a single character
+ - replaces a single space

All this are passed through GET method.
Go on link to my site and you will find a web server called SONAR made in VB by myself. Use it as you see fit.

HTH, s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top