-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 31 January 2003 09:34 pm, Greg Wooledge wrote:
> bdonlan (bdonlan at bd-home-comp.no-ip.org) wrote:
> > On Thursday 30 January 2003 10:45 pm, Greg Wooledge wrote:
> > > with the dreaded // in the middle of the URL.  wget cannot handle
> > > this -- it munges the // into a single /.  I cannot express how
> > > much this sucks. :(
> >
> > Use %2F, then.
>
> Hmm... fails in wget 1.7, but seems to work to a certain extent in
> wget 1.8.2.  Of course, it doesn't help if you're trying to recurse
> through a site that has absolute links into itself (e.g.
> <a href="/SSK at blahblah/4//activelink.png">, or to other freesites.
> And it produces *slightly* weird results when it hits web links
> (/__CHECKED_HTTP__www.foobar.com).  But it's a very clever and
> useful trick.  Thanks.

Here are some others I've found useful (requires php):
- ---urldecode.sh---
#!/bin/sh
# Decodes URL-encoded strings on stdin. Useful for decoding
# webbrowser location bars for command-line tools
(echo "<?php";
 (
  sed "s/'/'.\"'\".'/g" |
  sed "s/^/print urldecode('/" |
  sed "s/$/');/";
 );
 echo "?>";
) | php
- ---urlencode.sh---
#!/bin/sh
# Encodes any special characters such as ?+/, etc on stdin.
(echo "<?php";
 (
  sed "s/'/'.\"'\".'/g" |
  sed "s/^/print urlencode('/" |
  sed "s/$/');/";
 );
 echo "?>";
) | php
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+OzqTx533NjVSos4RAq7xAJ9lu73vRui2FB9RiwEnxBT1es6niQCgseMa
IO7q+SiaF4jf5Hj3ntX92N8=
=1bMT
-----END PGP SIGNATURE-----


_______________________________________________
devl mailing list
devl at freenetproject.org
http://hawk.freenetproject.org:8080/cgi-bin/mailman/listinfo/devl

Reply via email to