Set Site Values In FTPWebRequest In Program?
Sep 2, 2009How do you set Site values in FTPWebRequest in VB.net.[code]...
View 1 RepliesHow do you set Site values in FTPWebRequest in VB.net.[code]...
View 1 RepliesI need to upload a file to an ftp site. Can I use a simple webclient or do I need to use ftpwebrequest? What are the differences?
View 3 RepliesWhen i publish my program i choose to let the application check for updates via a website and if their is one update automatically when the program starts. Is their a way were on the main user form i can make it so that the user can change the update site with out me building the program again with the new site. I want to do this becuase the site i use goes down alot so when i changed the update url no one was able to download the update for the new update server.
View 16 RepliesI want with the click on the Button to get values from the site.The site has a code example:
1.Name: <b>Daniel</b><BR>
Daniel is the value I want to get into TextBox1.text
2.Same as the first:
<a onclick=" infowin(478488) " href="#"> ' It's not the full code
in the
Green: variable
Red: Text that I want to get what inside the brackets (variable)
Im trying to create a program that will login to a site for me, and cant get it to work for some reason. The code on the site im logging on to looks like this
<!--<p class="pleaselogin">Please Log In!</p>-->
<div style="MARGIN-TOP: 1px; COLOR: rgb(153,0,0); FONT-SIZE: 12px"
><b>Member Login</b></div>
<br>Sign in for more FREE features and tools!<br><br>
<form method="post" action="http://my.domain.com/login
[Code]...
I Was trying to make a program in vb.net, its idea like that
1) Check site titles name in every web browser that opened in the computer
2) find a specified word in the site titles
3) if the program found it , it Msgbox the site URL
I have tried this to check site titles name in every browser
Code:
For Each a As Process In Process.GetProcesses
Dim x As String = a.MainWindowTitle
x = x.ToLower
[code]....
but the problem in this code that if i'm opening some tabs and specified title in site is opened but i'm in another tab (another site) it does not work !
so how can i fix it ? and how can I make the program gives me the URL if specified word in title is found in IE and Firefox?
I have a 'health check' program that I have scheduled to run every 10 minutes. When it detects a problem, it sends a message to my cell phone.
Right now I have it checking databases by connecting to them, and trying to open them - that seems to work fairly well. I also have it checking web sites but all I'm doing to test them is[code]....
I have this working code from this link, to upload a file to an ftp site[code]...
I wonder, if the file already exists in the ftp directory, the file will be overwritten?
I Was trying to make a program in vb.net, its idea like that
1) Check site titles name in every web browser that opened in the computer
2) find a specified word in the site titles
3) if the program found it , it Msgbox the site URL
I have tried this to check site titles name in every browser For Each a As Process In Process.GetProcesses
Dim x As String = a.MainWindowTitle
x = x.ToLower
If x.Contains("microsoft") Then
MsgBox("microsoft website is opened")
[code]....
but the problem in this code that if i'm opening some tabs and specified title in site is opened but i'm in another tab (another site) it does not work !
I Was trying to make a program in vb.net, its idea like that
1) Check site titles name in every web browser that opened in the computer
2) find a specified word in the site titles
3) if the program found it , it Msgbox the site URL
I have tried this to check site titles name in every browser [code]but the problem in this code that if i'm opening some tabs and specified title in site is opened but i'm in another tab (another site) it does not work !so how can i fix it ? and how can I make the program gives me the URL if specified word in title is found in IE and Firefox?
I want my program to grab any image on the site that the url starts with like lets say can I use wildcards on vb.net?[URL] like [a-z|A-Z|0-9] or something like that? The full url for a image smaple would be [URL]
View 6 RepliesI'm trying to write a program that will get certain text from an intranet site, but there is a form for user name and password that I have to enter first. I found HttpWebRequest and HttpWebResponse and can use those, but how do I programatically log into the site so I can get the data I want?
View 5 RepliesI am not sure if this is possiable but I am looking to build an application that will login to a web site, navigate the site and download files. I would like to do this all in code and able to run multiple instances of the program to get information from many different web sites. Is something like this possiable in VB.net?
View 3 RepliesIve got an app that holds a list of site we have, At each site there are a few devices. The idea is when they click on a site all the details for the site are loaded and then a second thread sits and pings each device to see if its live. Im trying to do this in a seperate thread so if they click another site while its still pinging them it doesn't wait before it switches site. This all seems to be workling fine except if you click through the sites quickly, when you do that it will eventually come up with
Quote:
{"Collection was modified; enumeration operation might not execute."}
The error flags up on the "Next" line in "ThreadedPing"
Thread stuff
Public Sub ThreadedPing(ByVal dt As DataTable)
Try
Dim dr As DataRow
[CODE]...
I'm deploying a VB.Net app (VS 2010 Pro) that requiers the user click a command button to open IE to a financial WEB site and download informaion from the site. The app works fine in every detail when installed on the development computer. But, on the target computer when the command button is clicked an unhandled exception occurs which says: System.IO. FileNotFoundException:File Not found.My code behind the button is Shell("C:Program Files (x86)Internet Exploreriexplore.exe www,fidelity.com",AppWinStyle.NormalFocus)
This works fine on the development computer. Do I need a way to code this as a relative path? If so,can you tell me how this is done?Throughout the app I have written relative paths to needed files using paths like (Open(Environment. GEtFolderPath (Environment. SpecialFoldder.Desktop) + "File Name). They all work fine when deployed.
I'm trying to write a vb.net program that will upload a file to a FTP site that has SSL (explicit, although I'm not sure what this means).The sample code and explanations I've Googled always assume when it's SSL that I'm using a client certificate. But I have no certificate to load.I simply need to login, accept their certificate and upload my file.When I accept their certificate am I actually installing it on the client? For example of FileZilla a box pops up and I just click on accept, then my login is complete.
View 1 RepliesMy first project is a scraper program. I would like to see if anyone can send me code or a tutorial on how to do it. I would also like to learn how to make a message posting program for a social site.
View 1 RepliesI want to build a VB program that will go to a web site and pull out a specific piece of data.I am using VB Express 2010 not sure if it belongs in this .net forum.I am successfully getting to the website using WebBrowser.navigate()The data is provided to me in XML format and I am told that it is ready to be retrieved. They tell me to use XML Parser.When I go to their web site I see the data I need to pull out there is a column with tags in front of each piece, the piece I need is between <Vr0> and </Vr0>.I have no resources other than the net currently I do have a dummies book ordered but will be at least next week (at the earliest) before my first book arrives.Can you explain how I can sort through the data and pull out the data in XML format on a web site?
View 5 RepliesI'm being asked to maintain several internal-only web apps for my company. For testing, after making my changes, I've created some staging sites which make use of separate databases. As such, if my users were to mistakenly use this site as if it were the production site, they may enter important data and wonder where it "disappeared" to thinking it was the production server.
I'd like to create a big banner of some sort across the top of the staging site (which ONLY appears on the staging site) to remind my users that they are on the test site. I'd like recommendations on the best way to do this, with the following considerations:
IDE: Visual Studio 2008
Server: Windows 2003 with IIS 6
Language: VB.NET 2.0
i want to know how can i code my button when i click it will open my site ... i Think i was clear.
View 1 Replieswhen i am surfing in one site,i want to see the another URL...without going URL directly access the login......for example this is the login page url i want know automatic login to this page [URL]
View 1 RepliesThis Is regarding the post "FED07" posted which as a couple of months ago.He gives this
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim arr() As String
[code].....
I am putting together a simple app and I have it working for uploading, downloading, deleting files using FtpWebRequest. But I cannot find how to move a file using FtpWebRequest. What is the simplest way to move a file from one dir to another without using another external dependancy?
View 1 RepliesI would like to be able to either change the current directory (FTP) OR set it up when it first loads. My attempt to set it when the app first loads fails with a 550 error, when i try to change it using the method found here[code]....
View 2 RepliesThe underlying connection was closed: An unexpected error occurred on a receive.If I look on te FTP server I can see that the file has been uploaded entirely which led me to believe that the control channel was timing out. I have tried modifying the timeout on the FTP server as well as the ReadWriteTimeout in my code to no avail.Here is my code...
Dim ftprequest As System.Net.FtpWebRequest = DirectCast(System.Net.WebRequest.Create(destination), System.Net.FtpWebRequest)
ftprequest.Credentials = New System.Net.NetworkCredential(username, password)
[code].....
is there a way in ftpwebrequest to get the status of the connection? In VB6 using inet component you can use Statechanged, is there a similar way to do the same with ftpwebrequest?
View 2 RepliesHow can I get the files size when using ftpwebrequest
I'm downloading files fine, just cant figure this part out
I would like to use FtpWebRequest on a remote machine but I am getting remote server returned an error: (504) Gateway Timeout How can I fix this?
Here is my sample code:
Dim localFile As String = Nothing
Const remoteFile As String = "INBOX/"
Const host As String = "ftp://111.11.11.111/"
[code].....
I am trying to convert a VB6 app to vb.net. It used msInet.ocx and I am using FtpWebRequest to replace it.I have a problem when the password is blank and then remote server throws a 500 error.WebException was handled The remote server returned an error: (500) Syntax error, command unrecognized.
Const localFile As String = "C: eststat.txt"
Const remoteFile As String = "/stat"
Const host As String = "ftp://myprinter"
[code]....
I have wrote a web service, in a nutshell it uses openpop to get email messages does stuff with the content to insert into databases and saves attachments which are images. That works fine when i save images locally, it does exactley what it is suppose to. Now an added requirment was to save images to an FTP directory, so i can create my folders dynamically (they are created based upon timestamp) and that works well. My problem comes from when i try to save them to the ftp. Yes my user name and password are correct,otherwise i wouldn't be creating the directory.
Private Sub UploadFile(ByVal fileToSave As FileInfo, ByVal path As String)
Dim UploadRequest As FtpWebRequest = DirectCast(WebRequest.Create("ftp://UserName:Passowrd@999.99.999.9" & path),
[code].....