cbVision
06-30-2010, 03:19 PM
Hello,
Not sure if this is possible, but here goes!
I want a JSP file to automatically post data to an external URL.
If someone goes here:
www.example.com/index.jsp
This page would automatically post data like this:
String url = "http://www.postingdata.com/whatever.php";
String postData = "value1=whatever&value2=whatevermore";
....POST(URL, postData)
I'm looking for a way to post that data. I know "POST(URL, postData)" is obviously wrong, but that's the concept I'm thinking of. Is there a way to do this?
Thanks!
Not sure if this is possible, but here goes!
I want a JSP file to automatically post data to an external URL.
If someone goes here:
www.example.com/index.jsp
This page would automatically post data like this:
String url = "http://www.postingdata.com/whatever.php";
String postData = "value1=whatever&value2=whatevermore";
....POST(URL, postData)
I'm looking for a way to post that data. I know "POST(URL, postData)" is obviously wrong, but that's the concept I'm thinking of. Is there a way to do this?
Thanks!