Click here to Skip to main content
15,914,924 members
Home / Discussions / C#
   

C#

 
GeneralRe: can i bring external applications into a .net application Pin
jith - iii20-Feb-06 1:08
jith - iii20-Feb-06 1:08 
QuestionC# Error Pin
JacquesDP19-Feb-06 20:51
JacquesDP19-Feb-06 20:51 
AnswerRe: C# Error Pin
Stefan Troschuetz19-Feb-06 21:36
Stefan Troschuetz19-Feb-06 21:36 
GeneralRe: C# Error Pin
JacquesDP19-Feb-06 21:48
JacquesDP19-Feb-06 21:48 
Questionchange a user's group or account type in c# Pin
am2h19-Feb-06 20:26
am2h19-Feb-06 20:26 
QuestionHow to hide Windows Console Application? Pin
pubududilena19-Feb-06 20:23
pubududilena19-Feb-06 20:23 
AnswerRe: How to hide Windows Console Application? Pin
J. Dunlap19-Feb-06 20:30
J. Dunlap19-Feb-06 20:30 
QuestionFTP Client woes Pin
User 137680019-Feb-06 20:15
User 137680019-Feb-06 20:15 
I'm currently working on a kind of custom FTP client. It's not really an FTP client from a user perspective, but from a backend perspective it most certainly is.

Specifically, what the program does is logs in to an FTP server, uploads one file, downloads another and then exits, giving the user the contents of the downloaded file (plain text).

I put something together in the space of only a few hours using System.Net.FtpWebRequest and testing was fine with my real FTP server. When it came to testing it in the real world however, I ran in to a couple of hiccups.

The FTP server my program connects to is VERY stripped down (as it's really only designed for this one specific task, not a general purpose FTP server) and doesn't accept the majority of standard FTP commands. A quick Ethereal trace of my program running showed that it connected okay, but died shortly after login - the FTP server isn't expecting what the client gives it at login (a couple of fairly standard commands) and instead of just ignoring it, it falls over and refuses to go any further.

SO - after all that explanation, my question is whether it's possible to and how I would go about stripping down the FTP client to ONLY send:
1) USER <username> (no password)
2) TYPE I
3) PORT <abc>
4) STOR <filename1>
5) PORT <xyz>
6) GET <filename2>
7) QUIT
Attempting to send anything else at all will cause this FTP server to fall over (no, I have no choice in the matter of the FTP server - it's in an embedded device).

(and if I can avoid having to do the PORT side of things manually, that'd be a plus too - but only out of laziness! I'll do it if I have to.)

If it's not possible to strip down the FTP client side of it, I could alternatively approach it from the other direction and do it without using System.Net.FtpWebRequest at all, in which case I'd REALLY appreciate some pointers or example code on writing an FTP client from the ground up in C#.

Any help would be greatly appreciated.

Regards,
Ben.
QuestionUsing Multiple constructors in base and sub class Pin
miftha19-Feb-06 18:17
miftha19-Feb-06 18:17 
GeneralRe: Using Multiple constructors in base and sub class Pin
Guffa19-Feb-06 18:54
Guffa19-Feb-06 18:54 
AnswerRe: Using Multiple constructors in base and sub class Pin
J4amieC19-Feb-06 21:35
J4amieC19-Feb-06 21:35 
AnswerRe: Using Multiple constructors in base and sub class Pin
Guffa19-Feb-06 22:01
Guffa19-Feb-06 22:01 
QuestionColumn Sequence changes when binding Arraylist of Structs to Datagrid Pin
Adarsh Shah19-Feb-06 17:33
Adarsh Shah19-Feb-06 17:33 
QuestionPainting controls... Pin
Kasic Slobodan19-Feb-06 17:24
Kasic Slobodan19-Feb-06 17:24 
QuestionHelp on Word Document (2003) XML Support Pin
ted_92119-Feb-06 15:03
ted_92119-Feb-06 15:03 
AnswerRe: Help on Word Document (2003) XML Support Pin
malharone19-Feb-06 16:10
malharone19-Feb-06 16:10 
QuestionDataSets & TableAdapters Pin
monrobot1319-Feb-06 15:03
monrobot1319-Feb-06 15:03 
QuestionC# throw exception code format Pin
edel_ong19-Feb-06 14:03
edel_ong19-Feb-06 14:03 
AnswerRe: C# throw exception code format Pin
Christian Graus19-Feb-06 14:37
protectorChristian Graus19-Feb-06 14:37 
AnswerRe: C# throw exception code format Pin
Sean8919-Feb-06 14:55
Sean8919-Feb-06 14:55 
GeneralRe: C# throw exception code format Pin
Sean8920-Feb-06 1:46
Sean8920-Feb-06 1:46 
QuestionI need help Pin
loncountrygirl19-Feb-06 13:42
loncountrygirl19-Feb-06 13:42 
AnswerRe: I need help Pin
Christian Graus19-Feb-06 14:01
protectorChristian Graus19-Feb-06 14:01 
GeneralRe: I need help Pin
loncountrygirl19-Feb-06 14:45
loncountrygirl19-Feb-06 14:45 
GeneralRe: I need help Pin
loncountrygirl19-Feb-06 14:49
loncountrygirl19-Feb-06 14:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.