• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Http Post

 
Archana Annamaneni
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am doing a http post from java application to a url.Everything works fine ,the problem is the URL where I am sending the post has been changed and it is redirecting it to the new url on a network level.It seems the request is going to the url but all the data I am sending in the http post seems to be lost.Without chnaging the URl in my application is there any way I can send my request to the new url successfully?

Thanks
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Sockets and Internet Protocols
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably not. If the server is initiating a client-side redirect, then the post parameters are lost. Why don't you want to change the URL in your app?
 
Archana Annamaneni
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply.The problem our production servers url has been changed , we don't want all our customers to change their URL.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you able to look for the 302 error code and the Location header and resend the information to the specified URL from your code?
 
Archana Annamaneni
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NoI didn't do any changes to the code , doing the redirect on a network level .Do you thinkI should read the post and and do a post to thenew url again ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic