Challenging Problem in PASSing Data to Server, Plz Help

Reply

Join Date: May 2006
Posts: 1
Reputation: tarawneh is an unknown quantity at this point 
Solved Threads: 0
tarawneh tarawneh is offline Offline
Newbie Poster

Challenging Problem in PASSing Data to Server, Plz Help

 
0
  #1
May 26th, 2006
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:
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 89
Reputation: msaqib is an unknown quantity at this point 
Solved Threads: 1
msaqib msaqib is offline Offline
Junior Poster in Training

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

 
0
  #2
May 26th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 89
Reputation: msaqib is an unknown quantity at this point 
Solved Threads: 1
msaqib msaqib is offline Offline
Junior Poster in Training

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

 
0
  #3
May 30th, 2006
Ok here is the actual code which you can use to post the data to the next server. It uses XMLHTTP object in ASP.

  1. Response.Buffer = true
  2. xml = Server.CreateObject("Microsoft.XMLHTTP")
  3. xml.Open("POST", "<a rel="nofollow" class="t" 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?
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 131
Reputation: william_stam is an unknown quantity at this point 
Solved Threads: 2
william_stam's Avatar
william_stam william_stam is offline Offline
Junior Poster

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

 
0
  #4
Jun 7th, 2006
you could set up a page that submits a form on load using javascript.... with the folowing script.

  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
  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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC