o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

[2005] Please help clarify WebClient & HttpWebRequest -

Ok, i've been looking up info lately on how to post data via the WebClient namespace and i come up with partial info. i figure out the posting, now i'm trying to figure out how to load a url and get the html code. Similar to what Inet.Execute (posts data) and Inet.OpenURL (opens connection to another link). anyway my question is what is equivalent to the Inet control of VB6?

Please explain the difference between WebClient, and HttpWebRequest?
What control should i be using to perform the task of the old Inet.Execute and Inet.Execute?

Like Inet when POST data is sent via Inet.Execute the connection remains open when you load another URL via Inet.OpenURL. I want to be able to do that without losing connect or creating a new connection. So when I login and go to another page the connection remains.

thanks in advance.

 

[2005] Please help clarify WebClient & HttpWebRequest -
Ok, i've been looking up info lately on how to post data via the WebClient namespace and i come up with partial info. i figure out the posting, now i'm trying to figure out how to load a url and get the html code. Similar to what Inet.Execute (posts data) and Inet.OpenURL (opens connec


WebClient VS. HttpWebRequest, HttpWebResponse to "POST" a file -
Hello all; I've been trying to post an XML file to a specified uri, we can use either webClient or httpwebrequest and response classes. does anyone know whats the difference between them in this case? both of them can give the same result? personally, i think webClient is simpler!


Proxy Unames and Pass with DownloadFile -
Hi all Just wondering if anyone knows how i can get through my proxy when trying to use WebClient.DownloadFile The error i get is ... System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required. at System.Net.HttpWebRequest.CheckFinalS


uploading file to url -
I need to upload a text file with no headers to an https site. I have gotten the file to be posted correctly with the WebClient class, UploadFile method but it seems to automatically add headers. I've checked the header collection right before the uploadfile command (I even tried cle


[2005] Webclient.Downloadfile corrupts JPG files, but just with XP HOME -
When I save a JPG with IE6 it is smaller (e.g. the IE6 file has 44 kB and the WC-file 51 kB) than the same file downloaded with Webclient.Downloadfile. The WC-file is not readable by any program. Whats funny: the program works flawless on a computer with WIN XP Prof installed, but


[2005] System.Net.WebClient posing as a web browser -
Hello everyone I'm using the System.Net.WebClient class to connect to a website and collect data. But the site access log show no client information when I read pages (browser version, OS used, etc). Is it possible for the WebClient to give some information, like a regular browser woul


[2005] WebClient.Download file Lag -
Hi all, i got a WebClient command which downloads files (WebClient.DownloadFile) but it lags when ever i download anything too big... even few mb. I was wondering if any of you have a way of preventing the software from lagging/freezing (Not Responding) because right now it freezes w


[2005] What is a good way of downloading an image, without WebClient -
Hi, I am looking for the best, and quickest way of downloading an image in VB.NET without using webclient? (because I have a problem with webclient where it freezes for 10 secs the first time it downloads an image in my app). If anyone could post a code snippet example that would be


[2005] what can cause HttpWebRequest fail -
I have a program which uses HttpWebRequest. it works on my PC, but failed on a friend's PC. could it be because of firewall or anti-virus software he installed? thanks bear


[2005] WebClient Getting Data Problem -
Hi , i'am facing a problem using webclient to get some data i have a listview which filled by data coming from webclient problem let's say i have 10 result : so 10 line on listview i should wait until it end getting all the 10 result & then show them at once it's my fir


WebClient header problems. -
I keep getting the "5 An exception occurred during a WebClient request" for my webclient. Here's the header settings. The problem is the webClient.Headers.Set(HttpRequestHeader.Connection, "keep-alive") which causes this error. But I don't see what's wrong wi


[2005] The process cannot access the file...WebClient.Downloadfile() -
Hey Guys, I am attempting to open a CSVfile with a StreamReader that I have downloaded using WebClient.DownloadFile() but am receiving error: The process cannot access the file 'x.csv' because it is being used by another process. Code: Dim wb As New System.Net.WebCl


[2005]About WebClient & Socket -
Hi , i was using WebClient to read data from a webpage now my question is can the socket do the same thing as webclient which mean i can use New StreamReader to read a webpage... has someone any example how to read data from a webpage using socket Thanks


Using HTML and POST -
I need to kind of logging into a forum, so I need to first throught POST put my username and password and then to in someway get the cookies and use them everytime I connect again to the site. Code: HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create("http://xxx


[2005] Proxy and WebClient -
Is there a simple way to set WebClient proxy?


WebClient and progressbar -
Hey. On my program I have a webclient and it's designed to download a file from the internet. I also have a progressbar. How would I go about setting the progress bar to show the approximate percent that the webclient has downloaded so far? Just like Internet Explorer. Thanks John


converting vb.net to C# -
Dim wr As HttpWebRequest = CType(WebRequest.Create(_sourceURL), HttpWebRequest) how do i translate this into C#?


[2005] WebBrowser control - is it possible to disable image loading -
Hi does anyone know if it's possible to disable image loading on the webBrowser control? - so that pages load faster. I just want the HTML of the page to work with in my code - i don't wish for the page to be displayed. and I know that using httpwebrequest or webclient would


Ftp upload file problem*** -
OK so here is my problem I am using vb .net 2005 and I have this code so far [highlight=VB] Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim webclient As New System.Net.WebClient webc


FTP and the WebClient -
Has anyone been able to download files using an ftp URI with the WebClient? I am not sure if it is even supported but my fingers are crossed. Please send me some sample code if you have any.


[2005] WebClient Proxy -
How do I mask my webclient with a proxy? I need to download a page, but I need to download it with a specified proxy. Any help?


[02/03] Webclient Openread only part of the file returned -
I'm using webclient to try and download a file. I get the first few records (230 of about 2K) and then the download finishes. Dim myClient As WebClient = New WebClient Dim fsRead As Stream = myClient.OpenRead("http://www.awebsite.com/atextfile") sr = N


[2005] Big advantage with System.Net.HttpWebRequest -
Hey all, To start with, thanks for all helpful replies and questions I found around here. I recently got back to VB from a long break since VB6 (which we learned back in school). Hopefully I'm following all rules and recommendation for posting a question. Program: VB2005 Express


How to display the internet image in picturebox using HttpWebRequest -
Hi, I am beginner, and try it a long time and can not find the solution... Just want show the picture which in the internet...I will try using HttpWebRequest, because it will using in the mobile.. Thx


[2005] How to find out names of files on ftp server -
Hi. I was wondering how could you find out all the names of the files on a ftp server and place them in a listbox? Would I have to use System.Net.FtpWebRequest or System.Net.Webclient? In the meantime I will be looking at the FtpWebRequest and WebClient classes...


[2005] Webclient authentication -
Hi, I've got an asp.net page which outputs a PDF file using the following line report.Publish(HttpContext.Current.Response.OutputStream, Siberix.Report.FileFormat.PDF) I want to connect to the site from a windows forms app, download the pdf and then display it in acrobat. I


[2005] Current user credentials for Proxy.Credentials -
Im trying to find a way to specify that my HttpWebRequest uses the network creditials of the current logged on user for its Proxy.Credentials Is this possible? Code: Dim webRequest As System.Net.HttpWebRequest Dim webResponse As System.Net.HttpWebResponse webRequest = CTy


WebClient .net 2.0 -
When I use WebClient to download a file, it bypasses the cookies. I need to download files from a site that I am logged in to. When I download the file, it says that I'm not logged in, even though I am. So, I assume that its bypassing the cookies. How can I force WebClient to use th


[2005] httpwebrequest site title respond need help -
Hi guys I am using httpwebrequest to get respond from the server. But I can't find the property to get the site title or any others like the document. Code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click


A simple httpwebrequest login example. -
Where can I find a simple httpwebrequest login example? I have searched high and low on google. I need an example that will store the cookie.


[2005] saving file to network directory -
We have an existing application that upload file to a sharepoint site. But one of the client request that instead of uploading file to the SP site it will be upload to their network drive. When i visit the code i learned that it used a httpwebrequest (Stream property) in order to uplo


[2008] httpwebrequest and cookiecontainer problem -
I'm trying to log into a website using httpwebrequest but website tells me that cookies are not enabled. I do have this, Code: Dim cookieCont As CookieContainer = New CookieContainer Dim Request As HttpWebRequest = WebRequest.Create(URL) Request.CookieContainer = cookie


[2005] Headers left after WebClient.DownloadFile -
Hi, if I am using WebClient.DownloadFile() to get the file from a web server, what are the headers left on the server log for that request? Is it anything similar to: "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5", or am I way off? P.S


[2005] Is it possible to just get the text with no HTML with system.net.webclient -
basically said everything in the title...


WebClient class C#, VB.NET uploading file method 405 error. System.NET namespace -
There is a website that my company logs into everyday and uploads our credit card transactions every day in a text file. My boss wants me to create a program that completely automates this process without anybody having to log in. The browser upload control isnt what I am looking for


[2008]Get data from server using http client -
Hello, I want to retrieve some data using the HTTP protocol. The server has already been setup to recieve a customer ID. However, I am not sure about the http request in C#. I have been looking into the WebClient and the httpWebRequest clients. But I am not sure of the complete s


WebClient class System.Net errors. Uploading files to http address. 405 error -
There is a website that my company logs into everyday and uploads our credit card transactions every day in a text file. My boss wants me to create a program that completely automates this process without anybody having to log in. The browser upload control isnt what I am looking for


WebBrowser or WebClient -
I'm writing a small app that reads through the HTML of web pages from specific URLs and extracts only certain pieces of data from them. I'm trying to determine the most efficient way to do this. I don't need to display the web page, only retrieve the HTML and store it in a string.


[2008] (Maxsize) Problem with Network.DownloadFile -
Hi! Im trying to download a file from the internet which is 8.1 GiB big and My.Computer.Network.DownloadFile() isn't downloading the whole file. My file is 8.1 GiB big and DownloadFile() just downloads 977 bytes of the file. Thats not even 1 kb so i wonder, what's going wrong


[2.0] Problem with httpwebrequest -
When using httpwebrequest and "POST" method it seems that the getresponse doesn't get the first back but the last. What I mean is... I create the request. I use GetResponse to get the response but instead of getting the 302 found which is what I need to receive I get th