How To Know When Winsock Is Done Getting Data?[tcp-website]
Im connecting with a website and recieving data through the winsock control[TCP]. On my getdata, I will get sometimes 2-3 dataarival events because the winsock cannot fit as many chars as the website contains. Is there any way to know when the end of the website comes?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Winsock, Website Data
I have a scenario, where:
1. I can get the login information sent via get method in the url – But im not that keen on that because it shows up in history.
2. I can make VB enter the information into the website, but I am really clueless about winsock, any help would be helpful
Scenario 1 - I would like to know if it is possible to delete that certain url from history (Or even clear it all)
Scenario 2 – I really am unsure how to enter data into a online form (post)
But even after that I need to be able to read the html, then display certain parts of the information, I know in other information/scripts you are able to slect the line, then char that you want to read, I just cant seem to grab the html.
Any help would be useful.
Thanks.
Winsock Syntax? (To Request A Website With The Winsock Control)
Ok, I don't know very much about Winsock and am just now starting to use it. I'm making an anonymity program that modifies referer and user agent data. I managed to find an example of how its done on planetsourcecode.com but there's a few things that aren't working.
Anyway, when this string is sent, it sends the headers and a request for index.html from the connected host (winsock1.connect domain.com 80).
GET index.html HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-comet, */*
Accept-Language: en
Accept-Encoding: gzip , deflate
Cache-Control: no-cache
Proxy-Connection: Keep-Alive
User-Agent: Whatever
Referer: www.whatever.com
But when I used the website http://ipid.shat.net/ as the domain to see if code mdified the headers or not, it directed me instead to just www.shat.net. How would a browser request information to ipid.shat.net?
Also, I noticed that by sending just that information, cookies don't work properly. What other tags do I have to add onto that for it to recieve my session information? Thanks a lot.
Send Website Informations Via Winsock To Someone Else
I'm playing a massive-multiplayer-online-game. that means i have go online 5 times aday for about 3min. the game is programmed by a friend of mine. Now the computer-manager in school forced my friend to programm a IP lock, so we can't game from school.
I now want to programm 2 programms. a server and a client. the server would run 24/7 at my home PC and have to go and get the homepage and send the informations to the client. and the server has to click on a button in the website, but i want to say where to click, while working on the client.
How to get all the informations form the website, that I can send them with Winsock?
And how to make a click on the website at the server application, while sitting behind the client?
Just tell me how and what commands to use, I can try out and programming Winsock is no problem.
Winsock And Multi-Host Website, Where Is The Problem ?
Hi
I'm trying to make a program to work as an internet browser using winsock, I made some kind of success at the beginning with some famous sites (such as Yahoo!) but I failed to load some other sites, the server is replying with a page that tell me it is a multi-host website, while it can be opened normally using Internet Explorer, Where is the problem ? I'm using winsock command: "GET / HTTP1.1", but is there any other command can fix the problem ?
thanks
Loggin To A Website POST Method And DOM Or Inet Or Winsock HELP!!
Hi well what im trying to accomplish is succesfully load to a site that to login requires POST Method here's a little bit of the souce
-------------------------------------------------------------------------------
<form method="POST" action="membersarea.php">
<tr>
<td width="100%" colspan="2"><font color="#FFFFFF"><b><font size="1" face="Verdana">
EMAIL:</font></b><br>
<input type="text" size="17" name="email"></font></td>
</tr>
<tr>
<td width="100%" colspan="2"><font color="#FFFFFF"><b><font face="Verdana" size="1">
PASSWORD:</font></b><br>
<input type="password" size="17" name="password"></font></td>
</tr>
<tr>
<td width="100%" colspan="2">
<input type="checkbox" value="1" name="remember" CHECKED><font size="1"><b>Remember
Me</b></font>
</td>
</tr>
<tr>
<td><font size="1" face="Arial Narrow"><a href="lostpass.php">
Forgot Password?</a></font></td>
<td><input type="submit" value="Login" name="submit">
<input type="hidden" value="1" name="login_submit"></td>
</tr>
</form>
------------------------------------------------------------------------------
ok i need to login i have tried to do it with the DOM and this is what i got so far
VB Code:
Private Sub Command1_Click()With WB.Document.getElementById("email").Value = Text1.Text.getElementById("password").Value = Text2.Text.getElementById("remember").Value = "1".getElementById("submit").Value = "Login".getElementById("login_submit").Value = "1".Forms(0).Login.ClickEnd With End Sub Private Sub Form_Load() WB.Navigate "http://www.domain.com" Do While WB.ReadyState <> READYSTATE_COMPLETE DoEvents LoopEnd Sub
ok i get an error 'object doesnt support this method'
highlights this line
.Forms(0).Login.Click
anyway i can succesfully login to the page Thanks ALOT!!!
P.S. also there's anyway i can do it with INET control and winsock i would like to learn all of them 3 using POST method... thanks
regards,
EJ
How To Get Data From A Website
Hello,
Im having a problem trying to work out how to get the information i need from a website.
Ive done something like this before but the page was purely html.
Although now the page im wanting to get data from, i think it might be java/javascript? i dont know.
You'll see what i mean if u go to and click on exchange poker.
The information im wanting is basically just the table (includes hands/odds).
Ive tried using the inet control but the source doesnt seem to contain any of that data.
Anyone able to give me a few pointers?
Thanks alot guys
Kane
Get Data From A Website
I'm looking for some code so that I can put the title of a webpage in a string.
So the user gives a website, and the code makes a string with the title of that website. With the title of the website, I mean everything that is inside the <title></title> tag.
or maybe it isn't as simple as I think?
Using Vb To Put Data Onto Website
Guys,
i am trying to write some Vb to take data from one cells in a worksheet and put in a website but having a couple of problems as im very new to this.
I have managed to get the vb to start the website i need and to put the curser in the right box, but cant seem to be able to copy the cell that i need onto the page,
Also is there a to put a 8 digit number into a inputbox and copy this to the web page
Many thanks
i hope one of you can help
How To Get Data From A Website
Hi,
I'm making a small utility which with which user will query a keyword to a website and the program will show the results. Any ideas of how to do that?
google can be one example of the website say user types keyword "abc" so the application shows how many pages are there with term "abc"
Get Data From A Website
Im playing this game www.LifeHit.com and i want to know how much i gain in a attacks each day , but i dont know how i would get the amount.
If you dont understand what im talking about do this.
goto http://www.lifehit.com and for the login put in
Username : Tester142 Password : kennyrogers
when logged in copy and past http://lifehit.com/attack.php?who=ACURA%20TSX to your browser then click Attack This Player.
When the attack is done at the bottom of the page it says :
You have won the attack!
Earning Yourself $191,417.
I want to know how to add the amount i earn all together each time i attack is there a way i could do this?
Get Data From Website
Hello, for a program I am making, I have to have information on differenct cars. I found a website that has just the information I need on all the cars. My problem is, there are hundreds oh cars on this site. I was wondering, how I would be able to do the following to quicken up all the data entry.
I can type all the links in, and it puts it in a listbox. When I push cmdGetData, it will goto each page I have listed, grab the stats for each car, and then save it to an access database. So there is one db file, with many fields and records.
The website is http://www.fast-autos.net, and each page has the stat format as found here:
http://www.fast-autos.net/astonmarti...rtindb7gt.html
I just need the stats to the left, not the whole story on the car.
For example: it will look at the page, and see the word 'Horsepower', and add the number to the field in the access database 'Horsepower', and check for the rest of words.
Data From Website
what would be the best way to go about collecting data from a website and importing it to a database? Basically what I want to do is gather information from a web page, collect it somehow, and be able to display it my application. Any ideas, code, suggestions would be appreciated.
Thanks
Getting Data From A Php Page On A Website
Hello,
I need to know how i can get data from a webpage. In this case it will be php (i suppose it could be from a html, text file etc.). I need transfer the variables from that page to my program in VB. So say the page says username=scott, i need to get this data from the webpage and store it in the variable in the program
(so, for example (i have no idea, but something like this):
Public uname as string
uname = getData(http://www..../page.php)
)
Please help, thanks!
Query Website For Data
Hello, In my program I want to look on a certain website. When I push a command button I want it to search the site (http://www.slashdot.org) and add the headlines to a textbox. Is this possible?
How To Extract Data From Website
Hi there,
I am trying to download/save some financial data from the Yahoo! Finance website. The website (http://table.finance.yahoo.com/d?s=dna) has a form with 3 input fields: start date, end date, and ticker symbol. The user submits this data and the server returns the corresponding data in tabular form. I want to extract the data in this table and save it as a "*.csv" file (Comma Separated Values). I tried using MS Excel's "Get External Data" wizard, but this can be done only for one stock at a time. It gets a bit tedious when you have to do this for a 100 different ticker stocks, every single week. I want to be able to run the macro/VB Script so that all the tables are redownloaded everyweek and the ".csv" files are overwritten by new ones.
I am completely new to Visual Basic and to Excel and need help in getting started. Could some kindly guide me in the right direction? Is there a tutorial or website where I can learn how to write and run scripts in MS Excel? I will appreciate any comments/suggestions/advice. Thank You much.
Get Data From Website Tutorail?
A while back I thought I came across a tutorial by Herilane that explained how to grab text from a website. I am having trouble finding it now, can someone point me in the right direction.
To give a quick example of what I'm trying to do....
1. go to a site, say espn.com
2. navigate to a certain MLB player and grab their total number of hits to date this year.
3. run this update every night at about 2am
...not exactly what i'm trying to do but a simplistic example. Thanks!!
PS - Herilane your PM box is filled up... ;o)
How To Get Website Data Via Excel
Hello, I need via (Office EXCEL XP) to get Internet Data,
I use Database(D), Import other data(D), New web quote (W)
then give me my website, selected table to import. done.
Example: Quote Price
http://finance.yahoo.com/q?s=GOOG
http://finance.yahoo.com/q?s=DELL
Becuase doing this if need changed website link, but my question, can use EXCEL VB do this effect !?
TX1 = "http://finance.yahoo.com/q?s="
TX2 = A1 'GOOG ' 'DELL'...
WEBSITE = TX1 & TX2
Command1_Click = WEBSITE
Any suggest ? Please!
Data From Website - Toughie...
For me at least :-)
www.betfair.com provides odds for sportsbetting. Each selection within an event has a pop up info window that comprises left side and right side. e.g. window for: Basketball/NBA Championship/Outright Winner/Sacramento Kings (address got by right clicking) of left hand panel area is:
http://www.betfair.com/Betting/MoreI...=Europe/London
Right hand panel is:
http://www.betfair.com/Betting/MoreI...InfoRight.asp?
The left panel's address used in IE6 brings up the left portion of the screen - but not consistently
The right hand address doesn't bring up the history table even when same parameters are applied (it used to do before a recent side 'upgrade')
So my question is: How to reliably get the data in these panels?
Hope someone can help.
Capturing Data From A Website
OK, this is the age-old question. Does anyone know how (or can refer me to any source of information) I can use VB6 to extract data from a website to use in a VB6 application? I will use the usual example of extracting stock and share prices from a "live" site, such as the Australian Stock Exchange (which, coincidentally, is exactly what I am trying to do). As an example, say I was creating an application for my desktop that accessed the internet to extract the live share prices from the remote website to display them in my application. Anyway, any advice and/or assistance would be gratefully received.
Schmalz
Post Data To Website XML
I've made a frm with two text boxes and a command box. When a user enters info to the text box and then clicks the command box I want the information to be sent to a website XML script.
How do I link these two??
Postin Data On Website
Hey,i had code what would post the infor in text box onto a website/forum/pm with it?any guys know how to is it usin the get command could i see example?thanx
Data Entry Through Website
I thought I would let my fingers do the walking and see if anyone up here has some ideas.
I want to create a simple database and access it through a website hosted offsite. Then I need to be able to query it for certain parameters. Depending on the query answers, I want to be able to add/delete/modify records via the website.
Can this be done in VB6?
Should I screw around with vb.net?
Can this be done with MS Access?
Just starting to look but would appreciate any ideas you have.
Post Data To Website
Hi all,
I dont know if this question has ever been asked before, but I cant find much ressource on this: does anyone know how I could make a VB app send/post data to a given website... Something like sending a log or simmilar. I have an app that once a user has installed need to send its profile to register the software. Hope this is clear enough, guess many software does this...
all help appreciated,
thanx in advance.
Use VB6 To Post Data To A Website
I want to use VB6 to gather data from a database and then post that to a website. Can VB do an http post? Does anyone have some sample code that would help me get started?
The website is setup to allow either form submission or a query string. I'll be passing it the variable names and the values.
Submiting Data On A Website Using Vb
Hello all
i want to write an application using vb6 that could do some online stuff for me. It's easy to download the source of the website and navigate using hyperlinks, but there are still form elements on websites. Does anybody know how to submit some data of my choice using vb?
for example if i have:
<form name="form1" method="post" action="">
<select name="tempVal" id="select">
<option value="1">1 </option>
<option value="2">2 </option>
<option value="3">3 </option>
</select>
<input type="submit" name="Submit" value="OK" id="submit">
</form>
and my application should choose the appropriate value and submit it
If anybody could share some expirince and knowledge on this topic i would appreciate it
thanks in advance
chriss87
Is Possible? Imports Data From Website
hi, im new with the vb 6.0. I have been using excel and importing data as web-query to a sheet. I have planned to make an aplication which imports data from website (stock prices). Tell me, is that even possible? Another thing, while importing the data from website (web-query), every now and then the data (numbers) shifts from column a to b and it's annoying to change the range all the time. can I fix this problem by making a new application with vb 6.0?
thanks for help
Mike
Help With Program Sending Data To Website.
i'm working on a program that will take data entered into a text field lets say txtURL then send it to a website like google and submit the info. Any help would be appreciated I am somewhat new to VisualBasic and programming.
Re; Export/Import Data From Website
Hi,
I need help in exporting data to a website. I've had a website developed for on-line sales & i'd like to populate with Prod. info.
Do i need to write a macro since i want to export the data from Excel ?
Pls. advise - Mave
Send Data To A Variable On A Website..
Hello there,
I need to find out, if there is a way to send data to a variable/textbox on a website.
Is this possible? is yes how?
is any extra scripting required ? i.e php, asp etc...
Thanx
Data 'grabbing' Application {from Website}
I would like to 'grab' statistics from a website that displays stastical data and import these numbers (they will be in number form to be used in textboxes for calculations in the coding) in my Visual Basic Application. Can anyone steer me in the right direction on how to code such an application. I have never seen such an application where it 'grabs' data and imports the numbers into itself.
Any help / advice / or direction would be valued
Thankx,
--Phalken
Check A Data Of File On A Website
Hey guys I have file on my website, but how would VB be able to find out the date it was last modified? Then put that date into a labelwebdate caption.
Thanks!
Problem Sending Data To Website
Hello, I'm trying to automatically upload an image to imageshack.us, but I can't get it to work.
I could easily send data to Google and forums, but somehow it doesn't work with ImageShack. I get a Run-timer error '438' - Object doesn't support this propery or method on the line: WebBrowser1.Document.All("fileupload").Value = "C:myfile.jpg"
Also, I'm not really sure if "fileupload" and "submit" are the correct names, but I couldn't find anything else in the source code of the webpage.
Does anybody know how to upload an image to ImageShack by code?
VB Code:
Private Sub Form_Load() WebBrowser1.Silent = True WebBrowser1.Navigate "www.imageshack.us"End Sub Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant) WebBrowser1.Document.All("fileupload").Value = "C:myfile.jpg" WebBrowser1.Document.All("submit").ClickEnd Sub
Send Data To A Variable On A Website..
Hello there,
I need to find out, if there is a way to send data to a variable/textbox on a website.
Is this possible? other than having a webbrowser control on your form....!! if yes how?
I need it by default to open a webpage,, which i can do with the ShellExecute API but i dont know how to send the data to the variable...
is any extra scripting required ? i.e php, asp etc...
Thanx
How Can You Submit Data In A Listbox To A Website??
I have a program that has a listbox which contains different items in it for each person who uses it.. my question is, how can i post this data to a website??
(Like registering a new user - how do they do that?)
How Do You Send Data To A Input Box On A Website?
Hello. I have a webbrowser on my form, and I want to know how its possible to send data to input boxes on the webbrowser - kind of like a "autofiller" - something like what Gator does or what MSIE does when you have a stored password, it puts it in for you. What I want to do is read the HTML, and locate statements such as <input type="text" maxchars=21 name="email">, and then automatically (or by using a command button) send data that is already defined in a file, or in the Text1.text Text2.text, etc in the form itself. There is a good example of what Im trying to accomplish at http://www.roboform.com, except I cant exactly use roboform on my webbrowser in my form . So, does anyone know how to do this?? Ive heard I have to locate the webbrowser using API, and then use SetText (also API), but have no clue on how to do this . If anyone knows, dont hesitate to post below.
thanks
Filling & Retreaving Data From Website With VB
When I print an envelope, I would like my Access database to automatically fill in the address information into the web form at
URL and receive the standard address with zip+4.
Can someone show me how to call up the web page, get the info into the page and retrieve the results using VB?
TIA
Insert Data In Textbox On Website
Hello,
I want to insert data in a textbox on a specific website, and then click a button. I already know how to open the default browser this is what i got so far,
module1:
Code:
Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Public Const conSwNormal = 1
and a form with a commandbutton:
Code:
Private Sub Command1_Click()
ShellExecute hwnd, "open", "http://www.hotmail.com", vbNullString, vbNullString, conSwNormal
End Sub
for example i want to automatically check my email then the browser would go to hotmail.com, and then insert the username/pass in the textboxes and click the 'sign in' button.
Anyone that can help?
Problem Sending Data To Website
Hello, I'm trying to automatically upload an image to imageshack.us, but I can't get it to work.
I could easily get it to work with Google and forums, but somehow it doesn't work with ImageShack. I get a Run-timer error '438' - Object doesn't support this propery or method on the line: WebBrowser1.Document.All.Item("fileupload").Focus
Does anybody know how to upload an image to ImageShack by code?
Code:
Private Sub Form_Load()
WebBrowser1.Silent = True
WebBrowser1.Navigate "http://www.imageshack.us"
End Sub
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
WebBrowser1.Document.All.Item("fileupload").Focus
SendKeys "C:myfile.jpg"
Sendkeys "{ENTER}"
End Sub
Sending Data Through Visual Basic To A Website
Hey,
I have created an RSS FEED program for communities, such as vBulletin - that reads from a specified location (such as the http://www.xtremevbtalk.com/external.php?type=rss2) all records and organize it real nice [well, interface isn't designed yet but it will be ].
What I want to add is a 'quick reply' feature, like there is at the bottom of this page right here.
Is it possible to send the message using visual basic to the a php page with the right parameters?
Only theoretical example needed ofcourse heh.
Would be great if anyone could help me out with it.
Thanks in advance,
Kedmyster
Send Data To Website Without Webbrowser Control
Hello, is there a way with VB to send data to a website (i.e. Google) without using the Webbrowser control?
I know how to send data to a website by using the Webbrowser control, but now I'm starting the user's default browser. I have no idea how to do this now and I'm not even sure if it's possible.
Thanks.
Post Data To Website Without Loading Browser?
How do i post data that is say stored in some variables in VB, to a remote website using a method similar to Method=Post to post the details. Or is there a simpler way? Also the program needs to be hidden, preferably running as an NT4 Service (if anyone knows how to do that be my guest) so i dont want it to load any browsers, or it can load them but make them invisble to the user.
The reason i want it to be a service is so that it works when Nobdy is logged on.
Send POST Data To Website That Uses Frames
Hi,
I'm trying to send POST data and get response data from a website that uses frames and uses https://
the website is : https://www.lasuperiorcourt.org/civilCaseSummary/index.asp?CaseType=Civil
and, for example, I want to search for case # BC332390
I try to retreive the html data via the XMLhttp method in VBA, but the response text says my browser does not support frames. I'm not even sure if I'm doing this right. Can anyone teach me what is going on in this situation? Thanks.
Brian
Crawl Website And Pull Certain Pieces Of Data, How?
I have been able to program an app to load a website and crawl through a certain area of it.
But now I need to be able to pull specific pieces of information from it.
For example. The site shows,
part number, desc, quantity on hand, and price
Can anyone provide parsing assistance on how to get this info and put it in a database. I would just cut an past into excel but its over a 100 pages worth.
It is NOT xml, wish it was. It just plain html code and the part number information is in two rows.
It does have <A Href="#" name="skus" onClick="javascript.... at the beginning of the line so maybe this will help.
Thanks for any help
Edited by - cgchris99 on 3/15/2004 7:23:57 AM
Taking Data From A Table In Vb6 And Populating A Field In A Website With It
Hi All!
I am trying to take data from a textbox in vb6 and automating it to open a certain website and populate a field in that site. That data in the textbox is seven characters alphanumeric.
The website is http://premiersupport.dell.com/
The field I am wanting to populate on the website is:
Could you guys please show me the exact code I would need to do this? I've used sendkeys before, but this is over my head. Thank you.
|