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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

posting data to web form from VB

Status
Not open for further replies.

codefinger

Programmer
Feb 2, 2002
14
US
From the VB article that's guiding me:

>>
HttpSendRequest returns a value not equal to zero if it fails, so code like this is all it takes to send data to a CGI form handler. Call the API, passing your data and the length of the string containing the data. This
code uses the m_cPostBuffer variable to handle it:

If HttpSendRequest(hURL, "", 0, _
m_cPostBuffer, Len(m_cPostBuffer)) _
Then
'// it worked!
End If

<<

I am getting a zero return value from HttpSendRequest every time, but when I try to use InterNetReadFile
to check the response, I find nothing in the buffer. (Also, the site shows a history of transactions, and the transaction I attempted to post from VB is not there.) Earlier, I had some flags set wrong for secure sites, so even though it was not the response I wanted, I WAS getting a response from InterNetReadFile. Now that I've set the security flags on, nothing.

This has had me stumped for weeks. Any input would be greatly appreciated.

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top