file transfer via http 
Author Message
 file transfer via http

Environment: NT 4.0 SP3  VC++ 6.0 SP2

Hi,

I want to send (post) binary files via http. Not ftp! Has anybody an idea of
how that can be done?
I have already searched in MSDN, but couldn't find any (useful) information.
Is there a class which I can use?

Thanks in advance for any hint.

Roberto Rocco



Tue, 19 Feb 2002 03:00:00 GMT  
 file transfer via http
Do you have a web server to do this?
What's the client? If it is a browser, you can use
a: Asp: binaryWrite.
b: ASP call VB/VC/VJ com obj. Inside the com obj, you can use ASP
Response.BinaryWrite.
c: Use ISAPI directly.
Rgds,
Don Ji
Quote:

> Environment: NT 4.0 SP3  VC++ 6.0 SP2

> Hi,

> I want to send (post) binary files via http. Not ftp! Has anybody an idea of
> how that can be done?
> I have already searched in MSDN, but couldn't find any (useful) information.
> Is there a class which I can use?

> Thanks in advance for any hint.

> Roberto Rocco



Tue, 19 Feb 2002 03:00:00 GMT  
 file transfer via http
The WinInet APIs support HTTP as well as FTP. I assume you are talking about
writing a custom client.

Quote:

>Environment: NT 4.0 SP3  VC++ 6.0 SP2

>Hi,

>I want to send (post) binary files via http. Not ftp! Has anybody an idea
of
>how that can be done?
>I have already searched in MSDN, but couldn't find any (useful)
information.
>Is there a class which I can use?

>Thanks in advance for any hint.

>Roberto Rocco



Tue, 19 Feb 2002 03:00:00 GMT  
 file transfer via http
Hi, Don Ji,

Yes, I'm trying to upload binary files from my custom app.

I know the WinInet Api functions (CHttpConnection, CHttpFile,
CInternetSession, etc.), but I'm desperately searching for a code example
about how to upload binary files via http from my client. (Environment: NT
4.0 SP3, VC++ 6.0 SP2)

As far as I know one should use the PUT method (or even the POST method) and
has to fill in the correct request headers.

But how does all this fit together? What are the correct request headers?
What is the correct method?
If you had a code snippet to send me or any other information it
would be so helpful.

Thanks a bunch in advance,
    Roberto.



Quote:
> Do you have a web server to do this?
> What's the client? If it is a browser, you can use
> a: Asp: binaryWrite.
> b: ASP call VB/VC/VJ com obj. Inside the com obj, you can use ASP
> Response.BinaryWrite.
> c: Use ISAPI directly.
> Rgds,
> Don Ji


> > Environment: NT 4.0 SP3  VC++ 6.0 SP2

> > Hi,

> > I want to send (post) binary files via http. Not ftp! Has anybody an
idea of
> > how that can be done?
> > I have already searched in MSDN, but couldn't find any (useful)
information.
> > Is there a class which I can use?

> > Thanks in advance for any hint.

> > Roberto Rocco



Thu, 21 Feb 2002 03:00:00 GMT  
 file transfer via http
Hi Jonathan,

Yes, I'm trying to upload binary files from my custom app.

I know the WinInet Api functions (CHttpConnection, CHttpFile,
CInternetSession, etc.), but I'm desperately searching for a code example
about how to upload binary files via http from my client. (Environment: NT
4.0 SP3, VC++ 6.0 SP2)

As far as I know one should use the PUT method (or even the POST method) and
has to fill in the correct request headers.

But how does all this fit together? What are the correct request headers?
What is the correct method?
If you had a code snippet to send me or any other information it
would be so helpful.

Thanks a bunch in advance,
    Roberto.



Quote:
> The WinInet APIs support HTTP as well as FTP. I assume you are talking
about
> writing a custom client.


> >Environment: NT 4.0 SP3  VC++ 6.0 SP2

> >Hi,

> >I want to send (post) binary files via http. Not ftp! Has anybody an idea
> of
> >how that can be done?
> >I have already searched in MSDN, but couldn't find any (useful)
> information.
> >Is there a class which I can use?

> >Thanks in advance for any hint.

> >Roberto Rocco



Thu, 21 Feb 2002 03:00:00 GMT  
 file transfer via http

Quote:
> I know the WinInet Api functions (CHttpConnection, CHttpFile,
> CInternetSession, etc.), but I'm desperately searching for a code example
> about how to upload binary files via http from my client. (Environment: NT
> 4.0 SP3, VC++ 6.0 SP2)
> But how does all this fit together? What are the correct request headers?
> What is the correct method?
> If you had a code snippet to send me or any other information it
> would be so helpful.

The simplest thing to do is write a simple socket program to sit on a port
and wait for incoming info.  Then create a simple HTML page that has a form
with a binary file and whose action is your program.  Submit the form,
examine the results.  Duplicate that.  Also, have a look at the HTTP RFCs.


Thu, 21 Feb 2002 03:00:00 GMT  
 file transfer via http
The PUT method is for changing the content of a web server remotely.

What you probably want is HTTP File Upload which uses POST. See RFC 1867
"Form-based File Upload in HTML". Also see MS KB Q189651 "SAMPLE: Uploading
a File to IIS Using a Browser". The sample is an ISAPI Extension DLL that
will receive a POSTed file. This is the server side. Off hand I don't know
of a client sample but basically you want to create a POST request. The body
of the POST request will contain the file (or files) as described in the
RFC.

Quote:

>Hi, Don Ji,

>Yes, I'm trying to upload binary files from my custom app.

>I know the WinInet Api functions (CHttpConnection, CHttpFile,
>CInternetSession, etc.), but I'm desperately searching for a code example
>about how to upload binary files via http from my client. (Environment: NT
>4.0 SP3, VC++ 6.0 SP2)

>As far as I know one should use the PUT method (or even the POST method)
and
>has to fill in the correct request headers.

>But how does all this fit together? What are the correct request headers?
>What is the correct method?
>If you had a code snippet to send me or any other information it
>would be so helpful.

>Thanks a bunch in advance,
>    Roberto.



>> Do you have a web server to do this?
>> What's the client? If it is a browser, you can use
>> a: Asp: binaryWrite.
>> b: ASP call VB/VC/VJ com obj. Inside the com obj, you can use ASP
>> Response.BinaryWrite.
>> c: Use ISAPI directly.
>> Rgds,
>> Don Ji


>> > Environment: NT 4.0 SP3  VC++ 6.0 SP2

>> > Hi,

>> > I want to send (post) binary files via http. Not ftp! Has anybody an
>idea of
>> > how that can be done?
>> > I have already searched in MSDN, but couldn't find any (useful)
>information.
>> > Is there a class which I can use?

>> > Thanks in advance for any hint.

>> > Roberto Rocco



Sat, 23 Feb 2002 03:00:00 GMT  
 file transfer via http
The PUT method is for changing the content of a web server remotely.

What you probably want is HTTP File Upload which uses POST. See RFC 1867
"Form-based File Upload in HTML". Also see MS KB Q189651 "SAMPLE: Uploading
a File to IIS Using a Browser". The sample is an ISAPI Extension DLL that
will receive a POSTed file. This is the server side. Off hand I don't know
of a client sample but basically you want to create a POST request. The body
of the POST request will contain the file (or files) as described in the
RFC.

Quote:

>Hi Jonathan,

>Yes, I'm trying to upload binary files from my custom app.

>I know the WinInet Api functions (CHttpConnection, CHttpFile,
>CInternetSession, etc.), but I'm desperately searching for a code example
>about how to upload binary files via http from my client. (Environment: NT
>4.0 SP3, VC++ 6.0 SP2)

>As far as I know one should use the PUT method (or even the POST method)
and
>has to fill in the correct request headers.

>But how does all this fit together? What are the correct request headers?
>What is the correct method?
>If you had a code snippet to send me or any other information it
>would be so helpful.

>Thanks a bunch in advance,
>    Roberto.



>> The WinInet APIs support HTTP as well as FTP. I assume you are talking
>about
>> writing a custom client.


>> >Environment: NT 4.0 SP3  VC++ 6.0 SP2

>> >Hi,

>> >I want to send (post) binary files via http. Not ftp! Has anybody an
idea
>> of
>> >how that can be done?
>> >I have already searched in MSDN, but couldn't find any (useful)
>> information.
>> >Is there a class which I can use?

>> >Thanks in advance for any hint.

>> >Roberto Rocco



Sat, 23 Feb 2002 03:00:00 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. file transfer via http

2. HTTP File Transfer

3. HTTP protocol file transfer written in C

4. Problem with file transfer through HTTP request

5. HTTP / FTP file transfer

6. Transfer file via serial port

7. How transfer files via DCOM

8. Transferring files via modem

9. Need to get HTML file via HTTP.

10. File Upload via HTTP in C++

11. File upload via HTTP

12. downloading a file via http

 

 
Powered by phpBB® Forum Software