Page 1 of 1

Posted: Fri Nov 22, 2002 11:29 pm
by BackupUser
Restored from previous forum. Originally posted by tinman.

Hi,

Has anyone got any good links about the format of sending a POST method to an HTTP server? I've been searching for a long time but cannot find anything good (my program seems to work OK with Apache and a test script I have but causes a VBScript error on a real server).

Thanks.

(Update: it's to send HTML form data to the server)
--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + SP1, PB3.40)

Posted: Fri Nov 07, 2003 8:52 am
by Karbon
Asked nearly a year ago and I'm searching for exactly the same thing. There is libcurl which I've had a *little* success with but it's really hard to work with and to do SSL I'll have to include about 1.5 megs worth of DLLs..

Has anyone come up with any magic since 2002? I need to POST a form to a web page over SSL and read the results..

Posted: Fri Nov 07, 2003 10:03 am
by tinman
Wow, didn't realise such old posts still existed ;)
Karbon wrote:Has anyone come up with any magic since 2002? I need to POST a form to a web page over SSL and read the results..
I ended up writing some HTTP transfer routines which can handle GET and POST, plain and chunked data transfer and support proper events. They don't do resume and I've never looked at SSL.

I guess I could post them here if you want a look. Maybe. If you ask *real* nice ;p

Posted: Fri Nov 07, 2003 4:40 pm
by benny
Hey Tinman,

would be really interested to see that code :)

would you be so kind to post it,PLEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEAAAAAAAAAAAAAAAAAAAASSSSSSSSSSSSSEEEEEEEEEEEEEEEEE :D :?:
Thanks in advance

Posted: Fri Nov 07, 2003 4:44 pm
by Karbon
Yes tinman, see me begging over here :-)

HTTP is one step closer than I am now to HTTPS!

Posted: Fri Nov 07, 2003 4:58 pm
by Karbon
I'm also thinking that there might be a way to do this with a webgadget and some javascript but I'm not positive yet. It's a total hack but I'll post it if I can get something working.

Posted: Sat Nov 08, 2003 1:57 pm
by tinman
OK, rather than post it here, I've put it on my homepage. It's a collection of source files so not very well suited to posting on the forum.

The http_transfer.pb file is the main one you need to include to use it.

The file france_insee_data.pb is a piece of code I've used it with, but that probably won't run as I never checked that all the files are there - it's only there to show you how to use the HTTP stuff.

Note that there still seems to be some problems. Mainly that I found afer transferring a lot of files it would die without bumping the buffer size up a lot. There is no resume support. There is no pipelining support.

http://www.david-mcminn.co.uk

Posted: Sat Nov 08, 2003 8:47 pm
by benny
@Tinman:
Thank you very much ... i am going to download it immediately!

Posted: Sat Nov 08, 2003 9:31 pm
by Berikco
I wrote some POST functionality for atomic webserver once.
viewtopic.php?t=2229

Posted: Sat Nov 08, 2003 11:00 pm
by Karbon
Thanks guys!

Posted: Tue Nov 11, 2003 9:53 pm
by Dreglor
hmm your home pages does not exist as my browser says...
misspelled the link?

Posted: Tue Nov 11, 2003 11:35 pm
by tinman
Dreglor wrote:hmm your home pages does not exist as my browser says...
misspelled the link?
Me? No, it definately exists and the link is correct. I noticed that it was dead a few days ago, perhaps my hosting company had more problems when you tried. But I just checked now and it really does exist :)

Posted: Wed Nov 12, 2003 12:16 am
by Karbon

Posted: Wed Nov 12, 2003 10:44 am
by Psychophanta
Hey Tinman, 8th December 2003 doesn't exist yet. :)
Look at your web page :arrow:

Posted: Wed Nov 12, 2003 11:45 am
by tinman
Psychophanta wrote:Hey Tinman, 8th December 2003 doesn't exist yet. :)
Look at your web page :arrow:
Errr, that's the next planned update. Honest ;)