944,022 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 2583
  • ASP RSS
May 26th, 2006
0

Challenging Problem in PASSing Data to Server, Plz Help

Expand Post »
Hi Guys, Listen, Here’s I have a little challenging ASP Question facing my Mobile Project.

When I submit User data from my Mobile app to my ASP server using POST method, my Server validates this data and passes it to another ASP Server(i.e. another site), which at the end sends the answer.

The Problem is that, After validation,
>>>HOW can my ASP Server Forward processed data to another ASP Server using POST method without Client interaction<<< the Client only receives the answer from the Second ASP Server.

I’ll be very thankfull for any ideas :cheesy:
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tarawneh is offline Offline
1 posts
since May 2006
May 26th, 2006
0

Re: Challenging Problem in PASSing Data to Server, Plz Help

Well if the data is not huge then u can use the querystring to forward the data to the next server.

For posting the data you can use XML to post the data. I havent used that but i think it will work.
Reputation Points: 9
Solved Threads: 1
Junior Poster in Training
msaqib is offline Offline
91 posts
since Sep 2004
May 30th, 2006
0

Re: Challenging Problem in PASSing Data to Server, Plz Help

Ok here is the actual code which you can use to post the data to the next server. It uses XMLHTTP object in ASP.

ASP Syntax (Toggle Plain Text)
  1. Response.Buffer = true
  2. xml = Server.CreateObject("Microsoft.XMLHTTP")
  3. xml.Open("POST", "<a rel="nofollow" href="http://nextserver.com/something.asp" target="_blank">http://nextserver.com/something.asp</a>", false)
  4. xml.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
  5. xml.Send("name=MSaqib")

On the nextServer at page something.asp you can get the data using the Request.Form("Name").

Using this way you can post all the data to the next server.

Is it what you were asking in the PM?
Reputation Points: 9
Solved Threads: 1
Junior Poster in Training
msaqib is offline Offline
91 posts
since Sep 2004
Jun 7th, 2006
0

Re: Challenging Problem in PASSing Data to Server, Plz Help

you could set up a page that submits a form on load using javascript.... with the folowing script.

ASP Syntax (Toggle Plain Text)
  1. <% for each item in request.form
  2. response.write "<input type=""hidden"" name="""& item &""" value="""& request.form(item) &""">"
  3. next
  4. %>

and your form passes it on to the other server in the action field. with
ASP Syntax (Toggle Plain Text)
  1. <%= request.querystring() %>
after the url with a "?" mark first though. that way it will re submit all the form data aswell as the querystring.

the script thing creates a hidden field for all the form data submited with their names. hope it helps
Reputation Points: 10
Solved Threads: 2
Junior Poster
william_stam is offline Offline
131 posts
since Mar 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: URL Encoding
Next Thread in ASP Forum Timeline: script for number of views





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC