Hi
i am trying to upload a txt file thru this code, but its not
updating
the data. is this code fine.
Or can anybody please suggest me some other meathod to do the same.
its urgent please help
regards
shantanu
WebClient client = new WebClient();
client.Credenti als = netCred;
client.Headers. Add("Content-Type","applicat ion/x-www-form-
urlencoded");
client.UploadFi le("http://aww.ngn.bel.alc atel.be/prp/cgi-bin/secure/
ImportForm.cgi" ,"POST",@"C:\PR P\PRPTemp.txt") ; 5 3666
Hello,
Checkout this link, it explains how to make it step by step http://www.4guysfromrolla.com/webtech/091201-1.shtml
you can check as well: http://www.c-sharpcorner.com/UploadF...7-a64a09b0ee6b
HTH
Braulio
/// ------------------------------
/// Braulio DÃ*ez
///
/// http://www.tipsdotnet.com
/// ------------------------------
"shantanu" wrote:
Hi
i am trying to upload a txt file thru this code, but its not
updating
the data. is this code fine.
Or can anybody please suggest me some other meathod to do the same.
its urgent please help
regards
shantanu
WebClient client = new WebClient();
client.Credenti als = netCred;
client.Headers. Add("Content-Type","applicat ion/x-www-form-
urlencoded");
client.UploadFi le("http://aww.ngn.bel.alc atel.be/prp/cgi-bin/secure/
ImportForm.cgi" ,"POST",@"C:\PR P\PRPTemp.txt") ;
On Jun 25, 4:03 pm, Braulio Diez <braulio121NOS. ..@yahoo.eswrot e:
Hello,
Checkout this link, it explains how to make it step by step
http://www.4guysfromrolla.com/webtech/091201-1.shtml
you can check as well:
http://www.c-sharpcorner.com/UploadF...ad100920051721...
HTH
Braulio
/// ------------------------------
/// Braulio Díez
///
///http://www.tipsdotnet. com
/// ------------------------------
"shantanu" wrote:
Hi
i am trying to upload a txt file thru this code, but its not
updating
the data. is this code fine.
Or can anybody please suggest me some other meathod to do the same.
its urgent please help
regards
shantanu
WebClient client = new WebClient();
client.Credenti als = netCred;
client.Headers. Add("Content-Type","applicat ion/x-www-form-
urlencoded");
client.UploadFi le("http://aww.ngn.bel.alc atel.be/prp/cgi-bin/secure/
ImportForm.cgi" ,"POST",@"C:\PR P\PRPTemp.txt") ;- Hide quoted text -
- Show quoted text -
hi thanx for the reply
i just read the two links where the gui is present to upload the
files. But in my case i have a excel addin that will pick few values
from the excel sheet and form a text file that is compatible to the
upload format. Now i have a link of a web page that contains a file
control and a import button. on the click of the import button it
takes the file path as the parameter and invokes import.cgi script.
Now i have to upload a file thru this link using meathod like
webclient or any other meathod.
So i hope i have explained the things . Kindly get some solution
regards
shantanu
Mmm...
Correct me if I'm wrong, but the problem that you are facing is simulating
a manual file upload: a web app has an upload button and you want to simulate
that operation, is that assumption correct?
I'm not sure if it would be a good approach to take an sniffer and see
what http traces does the manual import generate, then you could simulate
that behaviour using HTTPRequests.
Not an easy scenario, the website could have even some upload component or
strange stuff :-(, here you have a code sample about file upload using
HTTPRequests: http://www.example-code.com/csharp/httpUpload.asp
Good Luck
Braulio
/// ------------------------------
/// Braulio DÃ*ez
///
/// http://www.tipsdotnet.com
/// ------------------------------
"shantanu" wrote:
On Jun 25, 4:03 pm, Braulio Diez <braulio121NOS. ..@yahoo.eswrot e:
Hello,
Checkout this link, it explains how to make it step by step http://www.4guysfromrolla.com/webtech/091201-1.shtml
you can check as well: http://www.c-sharpcorner.com/UploadF...ad100920051721...
HTH
Braulio
/// ------------------------------
/// Braulio Dmez
///
///http://www.tipsdotnet. com
/// ------------------------------
"shantanu" wrote:
Hi
i am trying to upload a txt file thru this code, but its not
updating
the data. is this code fine.
Or can anybody please suggest me some other meathod to do the same.
its urgent please help
regards
shantanu
WebClient client = new WebClient();
client.Credenti als = netCred;
client.Headers. Add("Content-Type","applicat ion/x-www-form-
urlencoded");
client.UploadFi le("http://aww.ngn.bel.alc atel.be/prp/cgi-bin/secure/
ImportForm.cgi" ,"POST",@"C:\PR P\PRPTemp.txt") ;- Hide quoted text -
- Show quoted text -
hi thanx for the reply
i just read the two links where the gui is present to upload the
files. But in my case i have a excel addin that will pick few values
from the excel sheet and form a text file that is compatible to the
upload format. Now i have a link of a web page that contains a file
control and a import button. on the click of the import button it
takes the file path as the parameter and invokes import.cgi script.
Now i have to upload a file thru this link using meathod like
webclient or any other meathod.
So i hope i have explained the things . Kindly get some solution
regards
shantanu
On Jun 26, 11:16 am, Braulio Diez <braulio121NOS. ..@yahoo.eswrot e:
Mmm...
Correct me if I'm wrong, but the problem that you are facing is simulating
a manual file upload: a web app has an upload button and you want to simulate
that operation, is that assumption correct?
I'm not sure if it would be a good approach to take an sniffer and see
what http traces does the manual import generate, then you could simulate
that behaviour using HTTPRequests.
Not an easy scenario, the website could have even some upload componentor
strange stuff :-(, here you have a code sample about file upload using
HTTPRequests:
http://www.example-code.com/csharp/httpUpload.asp
Good Luck
Braulio
/// ------------------------------
/// Braulio Díez
///
///http://www.tipsdotnet. com
/// ------------------------------
"shantanu" wrote:
On Jun 25, 4:03 pm, Braulio Diez <braulio121NOS. ..@yahoo.eswrot e:
Hello,
Checkout this link, it explains how to make it step by step
>http://www.4guysfromrolla.com/webtech/091201-1.shtml
you can check as well:
>http://www.c-sharpcorner.com/UploadF...ad100920051721....
HTH
Braulio
/// ------------------------------
/// Braulio Dmez
///
///http://www.tipsdotnet. com
/// ------------------------------
"shantanu" wrote:
Hi
i am trying to upload a txt file thru this code, but its not
updating
the data. is this code fine.
Or can anybody please suggest me some other meathod to do the same.
its urgent please help
regards
shantanu
WebClient client = new WebClient();
client.Credenti als = netCred;
client.Headers. Add("Content-Type","applicat ion/x-www-form-
urlencoded");
client.UploadFi le("http://aww.ngn.bel.alc atel.be/prp/cgi-bin/secure/
ImportForm.cgi" ,"POST",@"C:\PR P\PRPTemp.txt") ;- Hide quoted text -
- Show quoted text -
hi thanx for the reply
i just read the two links where the gui is present to upload the
files. But in my case i have a excel addin that will pick few values
from the excel sheet and form a text file that is compatible to the
upload format. Now i have a link of a web page that contains a file
control and a import button. on the click of the import button it
takes the file path as the parameter and invokes import.cgi script.
Now i have to upload a file thru this link using meathod like
webclient or any other meathod.
So i hope i have explained the things . Kindly get some solution
regards
shantanu- Hide quoted text -
- Show quoted text
Hi Thanx for the reply
i am trying this meathod today hope come up with a positive result
regards
shantanu
On Jun 27, 8:18 am, shantanu <shantanuse...@ gmail.comwrote:
On Jun 26, 11:16 am, Braulio Diez <braulio121NOS. ..@yahoo.eswrot e:
Mmm...
Correct me if I'm wrong, but the problem that you are facing is simulating
a manual file upload: a web app has an upload button and you want to simulate
that operation, is that assumption correct?
I'm not sure if it would be a good approach to take an sniffer and see
what http traces does the manual import generate, then you could simulate
that behaviour using HTTPRequests.
Not an easy scenario, the website could have even some upload component or
strange stuff :-(, here you have a code sample about file upload using
HTTPRequests:
http://www.example-code.com/csharp/httpUpload.asp
Good Luck
Braulio
/// ------------------------------
/// Braulio Díez
///
///http://www.tipsdotnet. com
/// ------------------------------
"shantanu" wrote:
On Jun 25, 4:03 pm, Braulio Diez <braulio121NOS. ..@yahoo.eswrot e:
Hello,
Checkout this link, it explains how to make it step by step
http://www.4guysfromrolla.com/webtech/091201-1.shtml
you can check as well:
http://www.c-sharpcorner.com/UploadF...ad100920051721...
HTH
Braulio
/// ------------------------------
/// Braulio Dmez
///
///http://www.tipsdotnet. com
/// ------------------------------
"shantanu" wrote:
Hi
i am trying to upload a txt file thru this code, but its not
updating
the data. is this code fine.
Or can anybody please suggest me some other meathod to do the same.
its urgent please help
regards
>shantanu
WebClient client = new WebClient();
client.Credenti als = netCred;
client.Headers. Add("Content-Type","applicat ion/x-www-form-
urlencoded");
client.UploadFi le("http://aww.ngn.bel.alc atel.be/prp/cgi-bin/secure/
ImportForm.cgi" ,"POST",@"C:\PR P\PRPTemp.txt") ;- Hide quoted text -
- Show quoted text -
hi thanx for the reply
i just read the two links where the gui is present to upload the
files. But in my case i have a excel addin that will pick few values
from the excel sheet and form a text file that is compatible to the
upload format. Now i have a link of a web page that contains a file
control and a import button. on the click of the import button it
takes the file path as the parameter and invokes import.cgi script.
Now i have to upload a file thru this link using meathod like
webclient or any other meathod.
So i hope i have explained the things . Kindly get some solution
regards
>shantanu- Hide quoted text -
- Show quoted text
Hi Thanx for the reply
i am trying this meathod today hope come up with a positive result
regardsshantanu- Hide quoted text -
- Show quoted text -
Hi
It did not work tooo
kindly assist
regards
shantanu This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: PeterB |
last post by:
Hi!
I'm using Pure ASP File Upload (http://www.asp101.com/articles/jacob/scriptupload.asp) to upload a file from a client to a server. I am testing both on a local IIS and a remote server. The welcome page has a browse button (for locating your local file), a textfield where the path is displayed, and a upload button. When clicking upload a VB ASP script is run, and the outcome is displayed on a new page.
1. On my local machine I got the...
|
by: R Reyes |
last post by:
I am trying to code a file uploader (for forum/email attachments) from the
client computer to a remote web server via the PUT method (since POST is not
allowed ). However, the upload works ONLY when the file is inside
a shared folder on my computer. If I try to upload from any other folder it
does not work. Why is this?
Reason being that whenever I upload files on other forums or websites I know
I don't need to have my folder shared...
|
by: Pat Carden |
last post by:
Hi,
We need to allow webusers to upload a file on our website (on Server3, all
servers run Server 2003, remotely hosted) and eventually save it on our SBS
Server (Server2) which is not exposed through our firewall. We have another
server (Server1) within the SBS domain that is exposed through port 80 of
the firewall on which we host some web services and images.
What is the best architecture for getting the file from the remotely...
|
by: Jen |
last post by:
I'm using Microsoft's own VB.NET FTP Example:
http://support.microsoft.com/default.aspx?scid=kb;en-us;832679
I can get the program to create directories, change directories, etc.,
but I can't get it to upload a file to the FTP server. I just get a
"Cannot connect to remote server" error after this TRY:
s = New Socket(AddressFamily.InterNetwork, SocketType.Stream,
ProtocolType.Tcp)
|
by: pmz |
last post by:
Dear Group,
I'm currently developing a simple Windows application in C#, which is
supposed to upload images - through 'WebClient' - into remote
(FreeBSD/Apache/PHP) server.
What is interesting (and the problem) that my script on the remote
server side says so: UPLOAD_ERR_PARTIAL (php error) - which means that
file was not successfuly (till the eof) uploaded. There is no
possibility of any limits (like php.ini - max_file_upload_size,...
| |
by: pbd22 |
last post by:
hi.
i am having probs understanding how to grab a file being uploaded from
a remote client. i am using hidden input fields for upload such as:
<input id="my_file_element" type="file" name="file_1" size=46 /><input
type=submit />
so, after adding a few files, the input fields look like this:
|
by: Buddy Home |
last post by:
Hello,
I'm trying to upload a file programatically and occasionally I get the
following error message.
Unable to write data to the transport connection: An established connection
was aborted by the software in your host machine.
Stack Trace
at System.Net.Sockets.NetworkStream.Write(Byte buffer, Int32 offset, Int32
|
by: KevinADC |
last post by:
Note: You may skip to the end of the article if all you want is the perl code.
Introduction
Uploading files from a local computer to a remote web server has many useful purposes, the most obvious of which is the sharing of files. For example, you upload images to a server to share them with other people over the Internet. Perl comes ready equipped for uploading files via the CGI.pm module, which has long been a core module and allows users...
|
by: garimak |
last post by:
Hi I m using the file uploader component for uploading the file on the remote server.It works fine when the server comes under my machines domain but when I try to upload a file on the server which dosent comes under my domain it gives error 'Login failure:invalid user or bad password'.Can any body tell me how can I get my client machine authenticated to upload the file on the remote server.
Thanks in advance
Garima Kurmi
|
by: lPrentice |
last post by:
Hello,
After all this time, Linux file permissions still confuse me at times.
I have a Python web-based application with an file (images) upload module. The application is running on two remote servers and a local server on my development network.
The upload module works just fine when I'm uploading to my remote servers. But when I try to upload to my development server, I get a permission error.
What I don't understand is who is...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |