Ankur Gupta wrote:
xx.xx.xx.81 has classic asp page sms.asp having code:
<%@ language=vbscript%>
<%
mobileNumber="0123456789"
Response.redirect("
http://xx.xxx.xx.99:8080/examples/smstrial.jsp?mobileNumber="& mobileNumber)
%>
Linux server(xx.xxx.xx.99:8080) with apache tomcat and linux v6.1
Enterprise has jsp page named smstrial.jsp having jsp code:
<%@ page import="java.io.*,java.util.*"%>
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<BODY>
<center>
<h1>Page Redirection</h1>
</center>
<%
String mobile=request.getParameter("mobileNumber");
String site="
http://180.179.218.150:80/sendurl.aspx?user=xyz&pwd=xyz&sen
derid=xyz&mobileno="+mobile+"&msgtext=Hello&smstype=0";
response.sendRedirect(site);
%>
</BODY>
</HTML>
Now from xx.xx.xx.81 iam calling sms.asp page from internet explorer and
getting error.
Ahaaa ! you are getting an error !
Do you care to share what error you are getting, and where ?
And have you looked into any relevant server log, to find out what that error
may be due to ?
If i change redirect webpage called in jsp code to some intranet server,e.g
xx.xx.xx.54 (which is not use for public website. It is used internally in
the organization and xx.xx.xx.81 server is connected to xx.xx.xx.54 )
then xx.xx.xx.81 browser successfully redirects to it without any issue.
Linux server xx.xxx.xx.99:8080 is connected to internet.
When we use wget command like
Wget http://180.179.218.150:80/sendurl.aspx?user=xyz&pwd=xyz&sen
derid=xyz&mobileno="+mobile+"&msgtext=Hello&smstype=0 then it successfully
executes it.
I hope this helps . Thank you for giving you time.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org