Page 1 of 1

Open file on web that does not end with file extension

Posted: Wed Oct 08, 2003 10:50 pm
by rkrite
Hi,

I really like that i can open a file directly from the web... such like this....

http://textpad.com/index.html

However, if the file does not end with a file extension, then it will give me an 'invalid file name' error.

..eg...

http://textpad.com/

Is there a way to get around this? or, does a "wishlist" type thing exist for TextPad for future releases?

Thanks

Posted: Wed Oct 08, 2003 11:28 pm
by Bob Hansen
This is a browser issue, not a TextPad issue.

Web sites, DNS sites, firewalls, web pages, and browsers can all affect what will happen when you type in a URL.

Sometimes you will run into rules that require a full name like "http://www.domain.com/home.htm". Some can handle "domain.com", some can handle "www.domain.com", etc. If no page is listed then there may be a search default that is looked for, such as index.htm, home.htm, etc. What results you will see depends on your browser, the version, the Web host, and the coding on the pages.

As an example, I used your example of
and five of my browsers opened up the TextPad page with no problem. That was using MSIE 6.0.26, Netscape 4.79, 6.2.3, 7.0, and Mozilla 1.4 using Win98SE and WIN98ME systems.

Posted: Wed Oct 08, 2003 11:32 pm
by rkrite
Thanks bob, but I was actually talking about opening the web site in textpad....

if you go into textpad, then go File-->Open then type in http://www.example.com/index.html is will fetch the page for you...

but if you open http://www.example.com it will error.

Posted: Wed Oct 08, 2003 11:49 pm
by s_reynisson
I can open all of your url's. Using TP 4.7.1.
I also have the file ending "*." in Document class Text.
The http://www.example.com pop's up in binary mode though.

Posted: Thu Oct 09, 2003 2:45 am
by Bob Hansen
Hmmmmm. I am confused.

I just opened your example of http://textpad.com with no problem. But when I "opened" it, I was using View, In WebBrowser, which opened up the browser with the default page. Was going to write that I had no problem "opening" the file in TextPad.

Then I re-read your message about using File Open. And I can't open anything using URL path. I have tried using *.* for all files, and *.htm/html but keep getting message that "file name is invalid". Closer reading of error message shows that "MyComputer" or local Drive paths are preceeding the "http" heading.

How do I overcome that? What setting am I missing?

Posted: Thu Oct 09, 2003 6:48 am
by MudGuard
For me, opening an URL does not work - the current working folder is prepended to the http

(Textpad 4.7.1, Win2K)