Link to home
Start Free TrialLog in
Avatar of mavmanau
mavmanauFlag for Australia

asked on

Posting data and recieving data back

Hi,

Thank you for taking a look at my question.  Your help is most appreciated.

Essentially I post some data to a link, and it returns some HTML data.  If I run the developer tab on IE i can see the return information on the return body section in network.  How can I make that return on a nicely formatted page. I am basically doing a form post to a site. and the information that is returned looks like this in the response body

<html><body><form><input type="hidden" name="SessionStored" value="True" /><input type="hidden" name="SessionStoredError" value="" /><input type="hidden" name="SST" value="af94c89d-6683-4168-b912-6501c85b3bf5" /></form></body></html>

thank you once again, your help is most appreciated.
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

All the inputs are hidden, so there is nothing to render.


Cd&
Avatar of mavmanau

ASKER

so how could I make them appear I guess is what I am asking.

Can I make it post the page to https://somepage.aspx and then divert the browser page to another page say php or something that is waiting for those hidden inputs?
I don't understand what you are doing.  You post a form to a site, so the site controls what is sent back. You can use the developer tools to see the data.  So what is the problem.  You want to save it for some other purpose just save the data to a file on your computer.

You can't post it anywhere but you can save the data and then put the data on another page and post that.  If you give a better description of what you are trying to accomplish perhaps I can help further.

Cd&
I basically want to display the information on a page somehow.

It is step one in recieving a token from a website. Just a basic message that if there is an error, displays the error, and if there is no error, showing the SST and the status of either True or false.
What I need to do, is with the XML parsable html code that is returned, submit the SST and another variable to another site.

so should I be attempting the post using XML rather than a simple HTML form post?
ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
actually I am submitting the same data back to the address which then registers my token and the next step is taken.

ie:
post data to API address: www.testapi.com/access/index.aspx which then posts back
this: <html><body><form><input type="hidden" name="SessionStored" value="True" /><input type="hidden" name="SessionStoredError" value="" /><input type="hidden" name="SST" value="af94c89d-6683-4168-b912-6501c85b3bf5" /></form></body></html>

and then I need to post the sst and another variable back to:
www.testapi.com/access/index.aspx 
which then gives me an iframe.

How would I go about saving the data? as long as I can save the data I can send it off whereever to then repost back to the site as such.

Thank you very much for your patience it is much appreciated, I know I probably didn't explain myself well enough earlier.
many thanks - Started using Curl which is doing what I need...almost :)