MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Viewing flat files with an internet browser

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics
View previous topic :: View next topic  
Author Message
bandog03
Beginner


Joined: 20 Mar 2005
Posts: 2
Topics: 1
Location: Ohio

PostPosted: Sun Mar 20, 2005 6:00 pm    Post subject: Viewing flat files with an internet browser Reply with quote

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
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Sun Mar 20, 2005 10:09 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
bandog03
Beginner


Joined: 20 Mar 2005
Posts: 2
Topics: 1
Location: Ohio

PostPosted: Mon Mar 21, 2005 4:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Mon Mar 21, 2005 5:55 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group