HTTP Post 
Author Message
 HTTP Post

Whoops, forgot the site..

Max Bolingbroke
http://www.*-*-*.com/



Fri, 31 Dec 2004 14:00:05 GMT  
 HTTP Post
If you're not adverse to using a custom OCX for more managed control of the way you POST things, visit the site in my signature and get the HTTPDownloader. There is an example of how to POST with it in the Help and Examples download.

Another, but less advanced, solution would be to use the Inet control to do this. I have no experience doing this, so can't help. Sorry!

Max Bolingbroke



Fri, 31 Dec 2004 13:59:41 GMT  
 HTTP Post


Quote:
>How can I send an HTTP post request in Visual Basic 6.0?
>Would Msinet.ocx let me do it ? If not , any API or any
>other way ?

>Thanks a bunch.

The Catalyst Development SocketTools Visual Edition contains an HTTP
ActiveX control that supports POST easily.  The product comes with
many VB samples, including ones that illustrate POSTing through the
SubmitRequest method.  You can download the entire product for a free
30-day evaluation from www.catalyst.com

David

----

Catalyst Development Corporation   | application with ActivePatch. Download
http://www.catalyst.com/           | the SDK from www.activepatch.com



Sat, 01 Jan 2005 02:14:36 GMT  
 HTTP Post
I am also looking into posting files to an ASP or CGI script using the
MSInet Control via the HTTP protocol.  FTP is not an option for me nor
is using a downloadable control that doesn't have the source with it.
This is due to some of the business rules I must follow.

What I've found so far is that Chin Seng wrote an OCX (CSInet) a few
years ago that uses the MSInet Control.  He has it for free download
at his website (http://web.singnet.com.sg/~kegoh/) but however doesn't
provide the source.  He also makes note that he uses the RFC 1867
protocol.

So in my attempt to recreate this control I've read the RFC 1867
proposal that I found here http://www.ietf.org/rfc/rfc1867.txt and
began trying to mimic the their examples in VB without success.

Below is a what I think  you have to do but it's not working yet, but
maybe someone can see what I've done wrong. Without finding anymore
documentation I'm almost at a stop point.  I'm hoping someone could
share some more information.

Regards,
Jared Kirkwood

'-------------
'my code
'-------------

strURL = "http://localhost/uploadfile.asp"

strInputData = "----------------------------7ce323980c" & vbCrLf & _
   "Content-Disposition: form-data; name=""name""" & vbCrLf & vbCrLf &
_
   "test" & vbCrLf & _
   "----------------------------7ce323980c" & vbCrLf & _
   "Content-Disposition: form-data; name=""filename"";
   filename=""D:\test.txt""" & vbCrLf & _
   "Content-Type: application/octet-stream" & vbCrLf & vbCrLf & _
   "HI JARED"

strRequestHeader = "Content-type: multipart/form-data;
boundary=--------------------------7ce323980c"

Inet1.Execute strURL, "POST", strInputData, strRequestHeader

Quote:



> >How can I send an HTTP post request in Visual Basic 6.0?
> >Would Msinet.ocx let me do it ? If not , any API or any
> >other way ?

> >Thanks a bunch.

> The Catalyst Development SocketTools Visual Edition contains an HTTP
> ActiveX control that supports POST easily.  The product comes with
> many VB samples, including ones that illustrate POSTing through the
> SubmitRequest method.  You can download the entire product for a free
> 30-day evaluation from www.catalyst.com

> David

> ----

> Catalyst Development Corporation   | application with ActivePatch. Download
> http://www.catalyst.com/           | the SDK from www.activepatch.com



Sun, 02 Jan 2005 21:28:56 GMT  
 HTTP Post
I've finially got it to work.   I found an error with the input
string.  I'll post the fix later tonight after I clean up the code a
bit.
Quote:



> >How can I send an HTTP post request in Visual Basic 6.0?
> >Would Msinet.ocx let me do it ? If not , any API or any
> >other way ?

> >Thanks a bunch.

> The Catalyst Development SocketTools Visual Edition contains an HTTP
> ActiveX control that supports POST easily.  The product comes with
> many VB samples, including ones that illustrate POSTing through the
> SubmitRequest method.  You can download the entire product for a free
> 30-day evaluation from www.catalyst.com

> David

> ----

> Catalyst Development Corporation   | application with ActivePatch. Download
> http://www.catalyst.com/           | the SDK from www.activepatch.com



Mon, 03 Jan 2005 00:43:42 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. word macro to use HTTP Post to send currently loaded word file

2. Http post with WebClients with Timeout

3. Http post and "&" char

4. how to make an http post?

5. HTTP Post of Form Data

6. HTTP POST

7. HTTP POST via VB.Net

8. Launching IE to display the results of an HTTP Post

9. HTTP Post method in WSH?

10. genrate a http Post in vbscript?

11. HTTP Post

12. Submiting file to HTTP Post from VB

 

 
Powered by phpBB® Forum Software