Wrox Programmer Forums
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 28th, 2005, 11:03 AM
Registered User
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default CHttp...

I am a newbie to internet programming, so if anyone can help with this, please take me step by step and don't assume I know anything.

There is a web page that I can access on a router (conviently sitting next to me). On it, I am able to "Browse" for a file and then "Load" it. Which actually sends it through a program on the router called "config". "config" will then do stuff to the file and save it wherever and however it needs it.

Now for my problem.
From my Visual C++.NET program, I need to send a file (we'll call it dummyfile.dat) over to the router and have it go through that "config" program.

All I'm trying to do is emulate what they do via HTML on their web page. Here is what I think is the right line from the HTML

<FORM METHOD="POST" ACTION="/cgi-bin/config" enctype="multipart/form-data">
NAME="CONFIG" id="browse"

I've figured out the connection part, but for the request part and on, everything I have tried has failed. If this was a regular, put-the-file-over-there thing, I think I'd be ok. But I just don't get this "run-a-program-over-there" thing.

Someone PLEASE help me! I'm desperate and on a deadline!!!!

Thanks in advance

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.