Commit Graph

26 Commits

Author SHA1 Message Date
François Revol
d66b59cdfc wget should handle https as well just file.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39639 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 00:43:46 +00:00
François Revol
94ce028380 BUrl::Full() actually doesn't contain the protocol part, add it back for ftp so it understands it's an url. Add it for wget as well, doesn't hurt.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39638 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 00:37:58 +00:00
Stephan Aßmus
015cd734f0 When checking the return code from BRoster::Launch(), always check for
B_ALREADY_RUNNING and don't treat it as error condition. See BeBook
documentation for more details. This bug resulted in urlwrapper opening a
Terminal and trying to use wget on Bookmark files that are supposed to open
in WebPositive (or any other browser), in the case that this browser was
already running.

Absolutely needs to go into alpha2. ;-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36757 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-08 20:51:56 +00:00
François Revol
d7acf4abc4 More cleanup :D
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36126 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-11 00:02:23 +00:00
François Revol
20433d6ee2 Cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36125 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-11 00:00:57 +00:00
François Revol
7883956881 - try to handle .webloc internet shortcut files from OSX,
- build uri scheme mimetype from the actual protocol specifier in the url,
- fallback to calling ourselves if no prefered app is set.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36124 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-10 23:54:22 +00:00
François Revol
af0ba3c2c8 Fix gcc4 picky warnings...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32549 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-20 22:30:32 +00:00
Jonas Sundström
03458c01a2 More style guide fixes. Removed a lot of preprocessing / conditional building, with intent to fix or remove. Moved urlwrapper class declaration to its header file. Renamed things for clarity. Removed 5 extra mimetypes for IE shortcuts. (We have one, with sniffing rule and extension.) Moved the UnurlString() back to urlwrapper.cpp and renamed it _DecodeUrlString(). Tweaked copyright clauses. A lot more needs fixing, esp. in urlwrapper but also in BUrl, and I intend to keep working on this until we're satisfied. Let me know of any remaining/added style violations! Feedback welcome.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30757 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-13 22:19:42 +00:00
Jonas Sundström
a243916712 Hopefully fixed indentation in BUrl header. Made data members in BUrl private. Added some class methods. Adapted urlwrapper to use the BUrl class. Removed a few obvious comments and some code that was defined away. Turned off debugging. Stripped App suffix from class name. No intentional changes to the core functionality of urlwrapper.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30739 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-13 01:05:42 +00:00
Jonas Sundström
28e8dc8e80 Move Url class out of /bin/urlwrapper into BPrivate::Support. I plan to add a Launch()-method that will make it useful to /bin/open, AboutSystem, People and other applications.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30702 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-11 00:48:03 +00:00
François Revol
5db3b6c9b3 Actually no need to pass the NULL either...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30576 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 17:23:54 +00:00
François Revol
4f5d92c0d5 Fix bad args for VLC.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30356 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-23 21:17:06 +00:00
François Revol
8dd71c2b23 Implemented UnurlString() and used it. Now you can fully use query: as in
query://%28%28MAIL:to==%22%2ahaiku%2a%22%29%26%26%28BEOS:TYPE==%22text/x-email%22%29%29 :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29903 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-04 16:31:33 +00:00
François Revol
48bd26db93 The telnet command handles an alternative port just fine, so pass it if present.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29831 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-31 16:07:18 +00:00
François Revol
ae05e8e720 Return native error codes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-04 12:59:41 +00:00
François Revol
baa1c04611 Add support for non-standard port on ssh and sftp.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28173 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-16 15:51:16 +00:00
François Revol
af73a9fb93 Add reading of .url files from win, redirects to default browser.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-04 01:26:42 +00:00
François Revol
5f29df20b2 Fix app sig and put it at a single place.
Add support for NetPositive bookmarks, so one can for ex place a bookmark on the desktop with an http: dl link for moz with pref app set to urlwrapper. *hint* Korli :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20831 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-25 22:45:12 +00:00
François Revol
f1f76bb624 Cleaned up protocol configuration. Put compile-time config in a header file, so the rdef doesn't include mimes for urls we won't support.
Added http: support with wget in a Terminal.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20829 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-25 22:11:52 +00:00
François Revol
4f18055dfa Support for a query:<forumla> url type :) (still needs unencoding of quotes)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-03-12 14:46:45 +00:00
François Revol
b0f302e45b more comments & todos
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20202 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-22 22:53:17 +00:00
François Revol
b5a3387b08 Some cleanups and fixes. Really use the Url class. Fix building under Haiku.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20181 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-20 14:27:49 +00:00
François Revol
2a6bab3cb7 Only launch a new instance of BeShare if it's not yet running or we specify a server in the url.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20051 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-02 17:00:06 +00:00
François Revol
9045e36181 Remove some debug output. Implied localhost for finger: and implied current server for BeShare.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20050 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-02 16:51:19 +00:00
François Revol
44c1a9db62 Cleanup rdef
Rewrote url parsing (unfinished)
Added several url types. Now it handles: ftp, sftp, telnet, ssh, finger, sh, file, beshare (to BeShare), mms, rtp, rtsp (to VLC). Some make probably more sense to add to the respective apps (BeShare, VLC...) but it's still handy for now.
Now please everyone go fix your apps to use generic url support instead of hardcoding http: :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20048 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-02 16:05:56 +00:00
François Revol
fc7ccd64a7 Doesn't really deserve its own folder...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20039 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-02 07:47:14 +00:00