Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Wininet API's

Status
Not open for further replies.

joemaur

Programmer
Feb 24, 2002
17
BR
Hi people,

I have an application that uses the winient API's to request an ASP Page, but I have to request this page with some parameters passing by post method, like you do when you subimt a form in the Internet. Could someone help me?

Since now, I thank you.

Jose Mauricio
 
This should not be a problem. Changes that you have to make in the request header are:

Add or modify Content-Type to value "x-form-urlencoded"

and after the header add a CR+LF then
the variables in format:

VariableName=Value&VariableName2=Value2 and so on

Take care, the above string should be url encoded(this means that the spaces must be converted to %20 and so on. You can use some api for this last one but I just remember that it's name is something like Url...)

HTH, s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top