Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Currently I'm involved in a project which make use of HTTP POST to post a variable to a PHP.

Which method or way can I use to parse the response into a web page?

Currently I'm only able to display the response as text.
Posted
Updated 2-Nov-10 22:37pm
v2
Comments
Dalek Dave 3-Nov-10 4:38am    
Edited for Grammar and Readability.

1 solution

If you are using C++ in its .Net Guise, there are HttpWebRequest and HttpWebResponse types in system.web that will help simplify your task. There are probably equivalent vanilla c/c++ libraries. If all else fails I suggest you look up the HTTP specification here[^], especially the parts relating to HTTP messages here[^]. This gives you the message format, and you should be able to write a parse routine from there.
 
Share this answer
 
Comments
Dalek Dave 3-Nov-10 4:38am    
Good Answer, Keith.
lilhui 3-Nov-10 5:04am    
Thank you for your help.

I need advise for my project.

Currently, i doing a project which involve smart card using winscard.dll module. Basically, what it does is it retrieve data from smart card and post it to a php file and display back the response as a website or a form. Whole application is automatic as it is triggered by the tapping of card. Currently methods i tried are keyboard buffer and HTTP POST for different version. Just hope that any one of you can advise me an more efficient way to do it.
Thanks
Keith Barrow 3-Nov-10 5:43am    
I suggest you edit your post and put your comment into it. Also, can you state whether the smartcard reader is networked directly (in which case you'll have some low-level coding to do at a guess) or attached to a PC.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900