Sponsored Content
Full Discussion: A google search shellscript
Top Forums Shell Programming and Scripting A google search shellscript Post 30643 by lusername on Thursday 24th of October 2002 04:57:47 PM
Old 10-24-2002
You should probably change the spaces in the search query to "+" and + to "%2B":
Code:
lynx "http://www.google.com/search?q=$(echo $@|sed -e 's/+/%2B/g' -e 's/ /+/g')"

 

5 More Discussions You Might Find Interesting

1. Web Development

Google search appliance

Please let me know if Google search appliance supports JSON or XML interface? If yes please provide some references (3 Replies)
Discussion started by: uunniixx
3 Replies

2. UNIX for Advanced & Expert Users

google search changes with an underscore

How does adding an underscore change a google search? I was searching for John Elway and got different results with and without an unscore. (3 Replies)
Discussion started by: cokedude
3 Replies

3. What is on Your Mind?

Changes to Google Site Search Location

We are going to move the Google Site Search that is located in the upper right hand corner of the site to the toolbar. Both are showing at the moment, and the plans is to create a UserCP option to "turn on" the Google Site Search where it is currently showing for users who prefer not to use the... (2 Replies)
Discussion started by: Neo
2 Replies

4. What is on Your Mind?

Google Site Search in Search Drop Down Menu (Again)

Have just added (after missing for some time), the latest version of Google Site Search for our site in the Navbar Search Menu: https://www.unix.com/members/1-albums215-picture791.png Cheers and Enjoy. Here is the URL for that link in case you need it: https://goo.gl/P8p82c (4 Replies)
Discussion started by: Neo
4 Replies

5. What is on Your Mind?

YouTube: Search Engine Optimization | How To Fix Soft 404 Errors and A.I. Tales from Google Search

Getting a bit more comfortable making quick YT videos in 4K, here is: Search Engine Optimization | How To Fix Soft 404 Errors and A.I. Tales from Google Search Console https://youtu.be/I6b9T2qcqFo (0 Replies)
Discussion started by: Neo
0 Replies
HTTEST(1)							   User Commands							 HTTEST(1)

NAME
httest - test HTTP driven application SYNOPSIS
httest [OPTIONS] scripts DESCRIPTION
httest is a script based tool for testing and benchmarking web applications, web servers, proxy servers and web browsers. httest can emu- late clients and servers in the same test script, very useful for testing proxys. OPTIONS
-V --version Print version number and exit -h --help Display usage information (this message) -n --suppress do no print start and OK|FAILED -s --silent silent mode -e --error log level error -w --warn log level warn -i --info log level info -d --debug log level debug for script debugging -p --debug-system log level debug-system to log more details -L --list-commands List all available script commands -C --help-command Print help for specific command -t --duration Print test duration -T --timestamp Time stamp on every run -S --shell Shell mode -S --shell Shell mode -D --define Define variables EXAMPLES
httest script.htt httest -Ts script.htt SCRIPTS
httest is script based. The following script examples can be but into a scripte i.e. sample.htt and can be called like httest sample.htt SIMPLE SCRIPT
Get a page and do expect return code 200 OK. CLIENT _REQ www.google.ch 80 __GET /search?q=apache HTTP/1.1 __Host: www.google.ch __ _EXPECT headers "HTTP/1.1 200 OK" _WAIT END CUT AND PAST SCRIPT
Cut and past from a HTTP stream, i.e we cut the apache host to access it in the second request. CLIENT _REQ www.google.ch 80 __GET /search?q=apache HTTP/1.1 __Host: www.google.ch __ _MATCH body '<a href="http://([^/]*)/" class=l>Welcome! - The <em>Apache</em> HTTP Server Project' APACHE_HOST _WAIT _REQ $APACHE_HOST 80 __GET / HTTP/1.1 __Host: $APACHE_HOST __ _WAIT END CLIENT SERVER SCRIPT
We can hold client and server in the same host. Actually multiple client and multiple server. Very useful to test forward or reverse prox- ies. Or a webapplication which communicat itself with third party servers i.e. mail server. This is a very basic selfcontained test you can run on any maschine. CLIENT _REQ localhost 8080 __GET /foo HTTP/1.1 __Host: localhost __ _WAIT END SERVER 8080 _RES _EXPECT "/foo" _WAIT __HTTP/1.1 200 OK __Content-Length: AUTO __ __Hello World END SSL SCRIPT
Of course SSL do also work with httest, just put "SSL:" before port. CLIENT _REQ localhost SSL:8080 __GET /foo HTTP/1.1 __Host: localhost __ _WAIT END SERVER SSL:8080 _RES _EXPECT "/foo" _WAIT __HTTP/1.1 200 OK __Content-Length: AUTO __ __Hello World END AUTHOR
Written by Christian Liesch REPORTING BUGS
Report bugs to http://sourceforge.net/projects/htt COPYRIGHT
Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. httest 2.2.6 June 2012 HTTEST(1)
All times are GMT -4. The time now is 02:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy