08-03-2009
stripping http and https from a url using sed
I have to write a
sed script which removes http and https from a URL. So if
a URL is
https://www.example.com or
Example Web Page, script should return me
Example Web Page
i tried echo $url | sed 's|^http[s]://||g'. It doesn't work. Please help
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
What is the UNIX command to download a file or data from HTTP location.
CURL(Linux) did not work.
Thank You (4 Replies)
Discussion started by: skm123
4 Replies
2. Shell Programming and Scripting
Hi friends,
I have a local host http://ss3/cgi-bin/page/page_list.cgi running on apache webserver perfectly well. But suddenly, it stopped working and gave an error "Internet explorer Explorer cannot display the webpage". But when i added https, as https://ss3/cgi-bin/page/page_list.cgi the... (2 Replies)
Discussion started by: nmattam
2 Replies
3. Programming
hi
am senthil
am developing a software to send and receive SMS using HTTP connection
first of all am forming a URL and sending that URL to a remote server using my Client Program
i send that url through Socket(using Send() Function)
if i send more than one URL one by one using the same... (0 Replies)
Discussion started by: senkerth
0 Replies
4. Shell Programming and Scripting
hi
am senthil
am developing a software to send and receive SMS using HTTP connection
first of all am forming a URL and sending that URL to a remote server using my Client Program
i send that url through Socket(using Send() Function)
if i send more than one URL one by one using the same... (4 Replies)
Discussion started by: senkerth
4 Replies
5. UNIX for Dummies Questions & Answers
Hi new to the forum,
I have a Apache server on CentOS which hosts a web site. I've set up the SSL which has been tested as I can access my website via http and https.
I would like to redirect all browsers to use https instead of http. I have created the htaccess file which contains 'Allow... (3 Replies)
Discussion started by: Sai245
3 Replies
6. Web Development
i read thru a few article how to do it, but i could not get it to work the way i want it.
vi ../httpd.conf
Redirect permanent /dev https://servername/portal/
when i type servername, works fine.
my goal is to type dev, and it takes me to https://servername/portal/ (4 Replies)
Discussion started by: lawsongeek
4 Replies
7. Web Development
Hi Team,
I have a question on the apache mod_rewrite module. I have a requirement of rewriting only specific url's to https.
Requirement below:-
want to match a word (test) on the url and if matches then it should rewrite to https.
example:-
... (1 Reply)
Discussion started by: arumon
1 Replies
8. Proxy Server
Hi there,
I have a VPS and am working on a little side project for myself and friend which is a DNS proxy. Everything was great till recently. My VPS IP has been detected by some botnet or something, and I believe SMURF attacks are occuring. The VPS provider keeps shutting down my VPS... (3 Replies)
Discussion started by: phi0x
3 Replies
9. UNIX for Advanced & Expert Users
Hello
I googled for "tcpdump view HOST http headers" -- that fine
However can we do same for HTTPS like after the HTTPS gets decrypted by Apache ?
I think this is legitimate on the server where the site is hosted since at some point the Apache itself needs to get the HOST patrameter in... (1 Reply)
Discussion started by: coolatt
1 Replies
LEARN ABOUT DEBIAN
httpfs2
HTTPFS2(1) HTTPFS2(1)
NAME
httpfs2 - mount a file from a http server into the filesystem
SYNOPSIS
httpfs2 [OPTIONS] URL FUSE-OPTIONS httpfs2_ssl [OPTIONS] URL FUSE-OPTIONS
DESCRIPTION
httpfs2 is a FUSE based filesystem for mounting http or https URLS as files in the filesystem. There is no notion of listable directories
in http so only a single URL can be mounted. The server must be able to send byte ranges.
OPTIONS
-c console
Attempt to use the file ior device console for output after fork. The default is /dev/console.
-f
Do not fork, stay in foreground.
-t timeout
Use different timeout for connections. Default '30's.
URL
The url should specify the protocol as http or https, and it may specify basic authentication username and password. Currently special
characters like whitespace are not handled so the URL cannot contain them. See a sample URL below:
http://user:password@server.com/dir/file
FUSE-OPTIONS
These options are passed to the FUSE library. At the very least the mount point should be specified.
EXIT STATUS
0
Successfully connected to the server
other
Failure (url parsing error, server error, FUSE setup error). Some FUSE errors may happen only after the process forks so they will not
be returned in exit value.
BUGS
The process can be stopped by typing ^Z on the terminal which may not be desirable under some circumstances.
AUTHORS
Miklos Szeredi <miklos@szeredi.hu>
hmb marionraven at users.sourceforge.net
Michal Suchanek <hramrach@centrum.cz>
COPYING
Free use of this software is granted under the terms of the GNU General Public License (GPL).
03/13/2010 HTTPFS2(1)