Groups | Blog | Home
all groups > dotnet faqs > march 2006 >

dotnet faqs : Urgent !!!!! How to Upload a file in C# with HTTPS Protocal


Praba
3/23/2006 9:04:33 PM
Hi Brahmam,
The webclient class has a credentials property.

Here is the sample code,

Dim objWebClient As New WebClient()
Dim Cred As New System.Net.NetworkCredential
Cred.UserName = TextBox1.Text
Cred.Password = TextBox2.Text
objWebClient.Credentials = Cred


Hope it helps (Sample code is in VB.Net pls change it to C#)

Regards,
Praba

[quoted text, click to view]


Brahmam
3/23/2006 9:11:30 PM
I want to upload a file to ebay site using pure C#

I am having a text file named eBayData.txt i want to upalod this to ebay
site at
URL :
https://bulksell.ebay.de/ws/eBayISAPI.dll?FileExchangeUpload/EBayData.txt

I tried with webclient class but it was not working fine , one more thing is
ebay has given a token for authentication , But when i used Webclient there
is no option to set the token or credentials

How to do this any ideas from ur side , I have to do with HTTPS: protocol
only and using C# (not with asp.net)

It's very urgent anybody help me

Thanks in Advance

Brahmi

Praba
3/23/2006 9:48:39 PM
Hi Brahmam,
The webclient class has a credentials property.

Here is the sample code,

Dim objWebClient As New WebClient()
Dim Cred As New System.Net.NetworkCredential
Cred.UserName = TextBox1.Text
Cred.Password = TextBox2.Text
objWebClient.Credentials = Cred


Hope it helps (Sample code is in VB.Net pls change it to C#)

Regards,
Praba
[quoted text, click to view]

Jason Hales
3/24/2006 8:52:30 AM
Have you looked at ebay's web service - eBay SDK 447.0 for .NET. It's
pretty comprehensive

http://developer.ebay.com/help/docs/#wsdkn
AddThis Social Bookmark Button