Sending commands to web site via NTMLView
BlitzMax Forums/BlitzMax Programming/Sending commands to web site via NTMLView
| ||
Hi Anyone know how to send command to lok at the test of aor click on certin links of a page disoplayed with NTMLView? And the Html run script - I cant find docs on that at all - is that the grail I seek or do I need to look elase where. For some background: I have a web Site - It has a web page, the host provider offer a great reposrt system from how many vistors, pages viewd - ect. The probem - I thave to go to the page, log in, click through like 20 page sna dthen finaly it is displayed. Worse the links to the reports a java based (I assume so that the hosting company can keep tabs on me) so I need to be able to hit those links. Can anyone offer nay help? Thanks! Dr T |
| ||
I have NO idea what you just said O_O |
| ||
Typo: HTMLVIEW GO Now that we have established im human and not perfect and your not either or you wouldent have pointed that out... can you answer the question? |
| ||
I'm afraid your post didn't make much sense to me either. :o/ You want to auto click links? |
| ||
correct sir |
| ||
I apologize English is not my first language.. Its not even my third so bear with me. Yes, auto click links on my web page to log in and go to view reports thanks |
| ||
I don't think you can do that given the basic interface we have to the HTMLView gadget. |
| ||
Do you know the protocalls required to "simulate" a browser? I could just open a TCP port 80 on the host, read in the web page as text. Its the "Get" command or someting right? anyway then find the link and jump top it - so I just do it in a text mode. Anyone know where I can find the HTMKL calling protocalls? Like the header, referer - all that? Thanks |
| ||
It's in the blitzmax socket documentation somewhere. Opening and reading a webpage |
| ||
Basicall just open a socket connection to a web address and post a GET /page HTTP/1.0 in question or GET / HTTP/1.0 for root page. Another example is here http://www.blitzmax.com/codearcs/codearcs.php?code=1579 |
| ||
No need to use sockets for that...local stream:TStream = OpenStream("http::blitzbasic.com", True, False) if Not(stream) then RunTimeError "Oops..." repeat print stream.ReadLine() Until stream.EOF() stream.Close() End...And before some smart arse pops up...I obviously meant, not directly. ;op |
| ||
...And before some smart arse pops up...I obviously meant, not directly. ;op That's what she said? I'm not sure. But you deserve to be smacked for that alone -_- |
| ||
Ahh yeah. OpenStream it was. Thought I saw it in the docs sometime :) |