Connecting through a lotus notes database through JAVA’s urlconnection

pts.
Tags:
J2EE
Java
JavaScript
JSP
Lotus Domino
Hi, I was wondering when I connect to a lotus notes database through java's url connection like this one, where the target is a redirect target.. http://.......gbp.nsf/agWebLAL?OpenAgent&UNID=A9D19EDE65447DF5C1256F2000465E87&Source=Customer%20Portal This connects to a file in the database, and I was wondering if there is a way to get the final URL, the filename and the mimetype before downloading it? It downloads fine, I just want to be able to get the details before my users download it.. Thanks!

Answer Wiki

Thanks. We'll let you know when a new response is added.

You can try some unix tools that may tell you.
For example the tool “curl” will probably just tell you the relocation url rather than trying to connect to the new url. Similarly, “telnet” may work. telnet hostname 80. then type GET agWebLAL?…..
That might tell you the redirect. telnet is also available from a dos window.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following