Sponsored Content
Full Discussion: open a web link from
Top Forums Shell Programming and Scripting open a web link from Post 302299069 by pludi on Thursday 19th of March 2009 06:14:15 AM
Old 03-19-2009
One of those should work, depending on what tools you have available
Code:
$ lynx -source http://www.domain.com/something.php?smt=SOMEDATA >/dev/null 2>&1
$ links -source http://www.domain.com/something.php?smt=SOMEDATA >/dev/null 2>&1
$ w3m -dump_head http://www.domain.com/something.php?smt=SOMEDATA >/dev/null 2>&1
$ netcat www.domain.com 80 <<EOF >/dev/null 2>&1 # Sometimes installed as nc, the line prior to EOF is completely empty
HEAD /something.php?smt=SOMEDATA HTTP/1.1
Host: www.domain.com
Connection: close
Accept */*

EOF
$
The following only works in bash and some versions of ksh
$ exec 3>/dev/tcp/www.domain.com/80 && echo "HEAD /something.php?smt=SOMEDATA HTTP/1.1
Host: www.domain.com
Connection: close
Accept */*

" >&3

 

6 More Discussions You Might Find Interesting

1. UNIX IEEE Std 1003.1-2001 (POSIX.1)

Link to the Open Group (UNIX Standards)

Click HERE to learn about The Single UNIX Specification, Version 3 Or: Here is another link to the UNIX IEEE Standard, an Open Group Technical Standard, Issue 7 Keywords UNIX® is a registered trademark of The Open Group (0 Replies)
Discussion started by: Neo
0 Replies

2. Solaris

Solaris 10 - Web link - Course Catalog

For anyone thats interested - Please see link below for Solaris 10 info describing new features/enhancements, changes to commands and also removal of some features. Admintool etc... http://training.sun.com/US/catalog/courses/WS-9000-S10-90.html (0 Replies)
Discussion started by: frustrated1
0 Replies

3. UNIX for Dummies Questions & Answers

need help and coroporation About Open Source Web Conferencing System Backtalk

hi All peopel im loooking for help from someone who could help me to install this Backtalk Open Source Web Conferencing System you can download it from http://www.unixpapa.com/backtalk/ so plz anyone know how install it into my website help me or email me so we cna discuse and corporate... (0 Replies)
Discussion started by: ksar001
0 Replies

4. Solaris

Can't open netscape web-browser

I am working in solaris 9 and i want to work with web-browser(netscape). but when I am openning it,it shows the message -- An error occurred reading the startup configuration file.Please contact ur administrator./.netscape/preferences.js,line 66:unterminated string literal.t,127.0.0.1 please... (3 Replies)
Discussion started by: smartgupta
3 Replies

5. Programming

g++ fails to link to static library when compilation and link in single command

Hello All, I've encountered a strange behaviour from g++ that doesn't make sense to me. Maybe you can shed some light on it: I have a bunch of source files and want to compile them and link them with a static library liba.a located in /usr/local/lib64 into an executable Approach 1 works... (0 Replies)
Discussion started by: magelord
0 Replies

6. UNIX for Advanced & Expert Users

Open a webbrowser link from shell script

Hi All I have a task which is manually submitted from a web browser link, by entering a value. This has an xml code as well. I am looking for options to automate the above to avoid manual intervention/dependency. Is there a way I can achieve this using shell script? Either open the link by... (3 Replies)
Discussion started by: sparks
3 Replies
HW_GETTEXT(3)								 1							     HW_GETTEXT(3)

hw_GetText - Retrieve text document

SYNOPSIS
int hw_gettext (int $connection, int $objectID, [mixed $rootID/prefix]) DESCRIPTION
Returns the document with object ID $objectID. If the document has anchors which can be inserted, they will be inserted already. This function will only work for pure text documents. It will not open a special data connection and therefore blocks the control connec- tion during the transfer. PARAMETERS
o $connection - The connection identifier. o $objectID - The object identifier. o $rootID/prefix - The optional parameter $rootID/prefix can be a string or an integer. If it is an integer it determines how links are inserted into the document. The default is 0 and will result in links that are constructed from the name of the link's destination object. This is useful for web applications. If a link points to an object with name 'internet_movie' the HTML link will be <A href="/internet_movie">. The actual location of the source and destination object in the document hierarchy is disregarded. You will have to set up your web browser, to rewrite that URL to for example '/my_script.php/internet_movie'. 'my_script.php' will have to evaluate $PATH_INFO and retrieve the document. All links will have the prefix '/my_script.php/'. If you do not want this you can set the optional parameter $rootID/prefix to any prefix which is used instead. Is this case it has to be a string. If $rootID/prefix is an integer and unequal to 0 the link is constructed from all the names starting at the object with the id $rootID/prefix separated by a slash relative to the current object. If for example the above document 'internet_movie' is located at 'a-b-c-internet_movie' with '-' being the separator between hierarchy levels on the Hyperwave server and the source document is located at 'a-b-d-source' the resulting HTML link would be: <A HREF="../c/internet_movie">. This is useful if you want to download the whole server content onto disk and map the document hierarchy onto the file system. RETURN VALUES
Returns the text document. SEE ALSO
hw_pipedocument(3), hw_free_document(3), hw_document_bodytag(3), hw_document_size(3), hw_output_document(3). PHP Documentation Group HW_GETTEXT(3)
All times are GMT -4. The time now is 05:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy