View previous topic :: View next topic |
Author |
Message |
bandog03 Beginner
Joined: 20 Mar 2005 Posts: 2 Topics: 1 Location: Ohio
|
Posted: Sun Mar 20, 2005 6:00 pm Post subject: Viewing flat files with an internet browser |
|
|
My question is how can I view a flat file on z/OS using a web browser? Currently I can enter the URL:
https:<server-name>.edu/uo_zos/'ADP.PDS.JMC.OUTFILE'
After typing the URL and pressing enter, a popup asks for my TSO login. Once I provide the login, the file is displayed in the browser.
If I embed HTML in the file, it is displayed in the browser (IE) as an HTML document, regardless of the PDS name.
I have a RTF document that I would like to use the browser to view by forcing the document to open in word. But the document does not open at all. I have looked into using a meta tag to tell the browser to expect the RTF document, but that did not work either.
Any suggestions would be welcomed,
John |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Sun Mar 20, 2005 10:09 pm Post subject: |
|
|
I suspect that the web server has to be configured to put in the appropriate headers. I haven't configured a z/OS web server in many years (and only in a 1 day class at that) but there is probably a rule to set the MIME type. |
|
Back to top |
|
 |
bandog03 Beginner
Joined: 20 Mar 2005 Posts: 2 Topics: 1 Location: Ohio
|
Posted: Mon Mar 21, 2005 4:23 pm Post subject: |
|
|
Thanks for replying semigeezer. I think you are correct about the header configuration. I did some research on headers and from what I understand, it is possible to set the headers in an html document by using the Content-type meta tag.
I tried using this meta tag, but no luck. I am wondering if the meta tags only set headers in the event that the web server did not send a header?
Do you know how I can see if and what the header be sent by the z/OS web server is?
Thanks,
John |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Mon Mar 21, 2005 5:55 pm Post subject: |
|
|
offhand, no. There are web sites that can fetch a page for you and show you the headers, but that won't work inside your firewall. You can run a trace using a network sniffer like ethereal (available on most Linux distros, and others). I thought there was a firefox extension that would do it, but I can't find one.
Or... you could telnet into the web server on port 80 and issue a GET request. That will return the data to you directly. But you need to know how to 'talk' in http. This won't work for secure sessions of course, but it is really easy for sessions that are in the clear (well... easy when it works). |
|
Back to top |
|
 |
|
|