Solved

Function for posting HTML form

Posted on 2004-10-01
8
185 Views
Last Modified: 2013-11-20
I need a function for posting html-form data in VC++
So the function parameter is URL address, data, and (the most important) PROXY SERVER address
(I had already found a function for posting form, but I cannot work behind proxy server.)
thanks
0
Comment
Question by:nk2003
  • 5
  • 3
8 Comments
 
LVL 6

Expert Comment

by:Amritpal Singh
ID: 12206427
plz have a look at the following link
may be it''l help a bit
http://www.codeguru.com/Cpp/I-N/isapi/article.php/c4491/
0
 
LVL 6

Expert Comment

by:Amritpal Singh
ID: 12206428
0
 

Author Comment

by:nk2003
ID: 12207372
I had looked those links, but I didn't get what I want.
Can you just give me the function plz.
0
 
LVL 6

Expert Comment

by:Amritpal Singh
ID: 12210650
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:nk2003
ID: 12211006
Sory, I forgot to tell that, the function also can receive respone from the server (in HTML).
amrit_82:  Can you translate http://www.developerfusion.com/show/3272/3/ to VC++? can it receive respone from server?
0
 
LVL 6

Expert Comment

by:Amritpal Singh
ID: 12214924
plz don't mind if i ask whether or not u know the concepts of POST and GET.
plz have a look at the following link

www.cs.tut.fi/~jkorpela/forms/methods.html

then try to work with the previous link
they are windows API calls that u can make in ur VC++ program.
IF u r still unable to figure out ,plz tell me
i'll be happy to solve the prob

0
 

Author Comment

by:nk2003
ID: 12225080
Maybe my concept about POST and GET is wrong, but let's make it simple...

I have a website which has submit form,
when I click summit button, the browser sends that data to server, then my server gives reponse html.
What I wanna do is,  make program to submit data, and get that respone, without opening browser.

Please help me,  write the function (VC++) for me plz
thanks
0
 
LVL 6

Accepted Solution

by:
Amritpal Singh earned 125 total points
ID: 12245857
ok i'll try to explain with the help of an example link

now , when u POSt data from a web from it goes something like this

www.URL.com/directryname/anotherdirectoryname/stillanotherdirectoryname?POST_variable1=POST_value1&POST_variable2=POST_value2

so the form data is posted to the server with a "?" and the 'variable = value'  pairs separated by '&'
now, in your case try to figure out the variable (or post data) names
now the link i'm sending to u this time is exactly what i've explained here
just replace the "strFormData" in the example with the POst data in ur address (link)

i hope this'll work
the link is
http://www.fadshop.net/ben/curl1.htm
Best Of Luck:)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now