How to POST Formdata to a Webserver

Just starting out? Need help? Post your questions and find answers here.
Sensphere
User
User
Posts: 19
Joined: Tue May 27, 2003 3:44 pm
Location: Germany/Stuttgart
Contact:

How to POST Formdata to a Webserver

Post by Sensphere »

Hi,

Does anybody know how to POST data to a Webserver like
Formdata from a webpage? Or is this not possible with pb?

I would like to do a login to a webservice by sending the
user/pass using POST (not GET for security reasons).

I know how to make it with GET but i would prefer POST if
possible.

tia
__ i know that i know nothing __
__ those who swim with the stream will never reach the source __
(K7 XP @ 2.4 GHz | WinXP SP1 | 1 GB RAM | ATI Radeon 7500 | PB 3.81 [Win|Linux])
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

Take a look at this PDF, which explains it all in detail. It designed for Perlers but is easily adaptable.

http://www.ncat.edu/~esterlin/c322ss102/Notes/cgi.pdf
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

I've been attempting to get libcurl to work with PB, however it's not exactly the best choice for a fairly new PB user to try.. I'll get it working eventually I hope. Until then, good luck!

A friend was telling me that there are some things available through COM, I'll post more detail when I get it..
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Post Reply