Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
Hai everybody,

Good Evening to all...
 
i have been developing window application to upload files.currently i am using ftp to upload. can anyone suggest code to upload and send file through http's?
 
thanks in advance..
Posted 29-Nov-12 0:22am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi Jai,
 
I did a search for you and got this !
 
Check it out.
  Permalink  
Comments
jai_mca at 30-Nov-12 1:38am
   
Thank u so much dear VitorHugoGarcia,
 
this is very useful to me.but i have one question.i have public ip for https.instead of hostname is it possible to use that ip?if it is possible means when i enter that ip in browser address bar it need to open na?
VitorHugoGarcia at 30-Nov-12 4:25am
   
I guess you could just change https://someSecureTransferSite.com/directory to https://102.52.52.58:443/directory being 102.52.52.58 changed for your public ip. 443 is the standard port for https.
 
Just give it a try and report here the result please.
 
PS - What do you mean by "na" ?
jai_mca at 30-Nov-12 5:08am
   
thanks again..i have tried like https://122.183.243.40/DATA.but it prompt the error like below.
"unable to connect the remote server"
 
PS -sorry,na means know?.i write it like speaking to directly
jai_mca at 4-Dec-12 2:02am
   
i just wanna upload file to the above ip.i have developed window application for that.now my problem was how do i pass the ip?? before that i used ftp to upload.in ftp we can open manually and able to check.but in https how is it possible.i am totally confused.plz clear my doubt. thanks in advance
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

You can send it HTTP Request
You would need to do a "POST"
You need to encode the file as a string or binary
 
http://msdn.microsoft.com/en-us/library/d4cek6cc(v=vs.100).aspx[^]
  Permalink  
v2
Comments
jai_mca at 30-Nov-12 1:55am
   
Thank u so much dear Mathlab, this is very useful to me.but i have one question.i have public ip for https.instead of hostname is it possible to use that ip?if it is possible means when i enter that ip in browser address bar it need to open na if it is correct means?
Mathlab at 30-Nov-12 8:28am
   
any valid web address or valid ip can be put in your uri variable
jai_mca at 3-Dec-12 4:43am
   
thanks again..i have tried like https://122.183.243.40/DATA.but it prompt the error like below. "unable to connect the remote server".
 
Is it possible to connect the remote server manually using that ip address?
Mathlab at 3-Dec-12 12:03pm
   
The solution I suggested requires a server application to recieve the information on the other side, becasue of the "POST". so you have to have a web page to send your post on the other end.
jai_mca at 4-Dec-12 2:01am
   
i just wanna upload file to the above ip.i have developed window application for that.now my problem was how do i pass the ip??
before that i used ftp to upload.in ftp we can open manually and able to check.but in https how is it possible.i am totally confused.plz clear my doubt.
 
thanks in advance

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 375
1 Sergey Alexandrovich Kryukov 195
2 Prakriti Goyal 177
3 jlopez788 134
4 Kruti Joshi 117
0 OriginalGriff 6,742
1 Sergey Alexandrovich Kryukov 5,479
2 Maciej Los 3,474
3 Peter Leow 3,313
4 DamithSL 2,505


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 29 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100