How Do I Make A HTTP (POST) Call To DLL To Make HTML?
In some applications you see a HTML page in the Web-browser call a DLLinstead of a .asp page.The result is HTML presented in the browser.I have seen this working for stand-alone apps as well (Internet Explorerdoes the same)== Questions1) How does this work?2) How do I set up the VB code inside the DLL to recieve and handle theHTTP-call?3) Is there any sample code available showing me the basics? (A VB project,or "whitepapers")4) Dou you recommend .NET or VB 6.0?== Why?I want create a small desktop application using HTML-pages to present dataand to present forms.Via POST, data should be stored via the DLL into a database== What for?Applications to be distributed to desktops using Win 98, WinXP and Win2000Thanks in advance.Peter
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Make HTTP POST From My Vb Form
HI all i wonsder how i can make a post request from a .php script from with in my applicaton. PAsssing it certian data and getting the request response back to a textbox. Just Like the pic i shown here. I did the layout but i do not how to write the onclick event for send button so it sends the post request. I be happy if any one help me to do that.Thanks
How To Make HTTP POST From My Vb Form
HI all i wonsder how i can make a post request from a .php script from with in my applicaton. PAsssing it certian data and getting the request response back to a textbox. Just Like the pic i shown here. I did the layout but i do not how to write the onclick event for send button so it sends the post request. I be happy if any one help me to do that.Thanks
I Want To Make HTTP Server!
heyall!
i want to make a simple HTTP server so i can connect to it with a browser and get html pages basicly its what servers do lol..
anyway, i dont even know where to start what i tryed to do is to see what data the browser sends (lol?) and heres what i got
----
GET / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*
Accept-Language: en-ca
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Host: [myip]:8080
Connection: Keep-Alive
----
i have no idea lol!
anyone can give me a site where i can find stuff i need to send and how to reply to the browser.. thanks
Make A Http Server
Hi all!
I will make a http server, but i don't now how. So i will have a little help. I will show html files, and mayby set up php suport. So how do i make a http server?
How Do I Make An Http Request?
Hiya!
I'm wondering if it is possible to make an http request from a VB6 program and how it is done??
What I want to do is checking a lot of links and see if they are alive.
Thanks,
Magnus Ohlin
How To Make A Post Request Using Vb6?
Hi all. I got a vb 6 form that has a a few text boxes that users fill their name and address and a text massage and a submit button. I wonder how i can make a post request on click of this button to a php page so it recives that data from vb6 form. I be happy if some one tell me how i can make such post
request.Thanks
How To Make Post Request To Php From My Vb6 App?
Hi all i wonder if i can make my vb6 application to talk to a php page and send the php page some mysql statment that it executes in remote server.I want to send an HTTP Request, like a POST, with some data for the PHP script to use.I be happy if i get some help here.Thanks
How Do You Make A VB Program POST DATA?
How would I make this work...
http://img122.imageshack.us/img122/9152/formpn8.jpg
It doesn't need to output anything or give any feedback, I just wanna get the post part working.
(oh and this uses POST, not GET, so just bunging everything into the address bar won't work)
How Do You Make A VB Program POST DATA?
How would I make this work...
It doesn't need to output anything or give any feedback, I just wanna get the post part working.
(oh and this uses POST, not GET, so just bunging everything into the address bar won't work)
(VB.NET) I Need To The Program To Make The Connection Through An Http Proxy.
Private ns As NetworkStream
Private client As New TcpClient()
Public Function Open()
client.Connect(_server, _port)
ns = client.GetStream()
Dim strMessage As String = "Message" & ControlChars.CrLf
Dim sendBytes As [Byte]() = Encoding.ASCII.GetBytes(strMessage)
ns.Write(sendBytes, 0, sendBytes.Length)
End Function
This is how I thought I would tunnel the connection but this does not work:
Public Function open()
Dim Proxy As New System.Net.WebProxy("http://" & _proxy & "/")
Dim strmessage2 As String = "CONNECT " & _server & ":" & "_port" & "HTTP/1.0"
Dim Sendbytes2 As [Byte]() = Encoding.ASCII.GetBytes(strmessage2, 0, strmessage2.Length)
Return Sendbytes2
End Function
Post Info To A URL Using Asp Script And Getting Results Like Http Method Post.
I am trying to find script or just where to start.
I want to use asp script (server side) to post some hidden info to another server(URL), then get the info back from the return page and parse through the text to return a page based on the text in the return page.
I Don't want to have the user forwarded to the page that the post is going to I just want to post info to the URL and get the data back. Then create a page based on the data.
Any help with this will be much appreciated.
Thanks,
Dave
How Do I Make Inet Control NOT Follow Location Header (http Code 302)
I am trying to make a vb app that will download a file from the internet.
Currently i am having a problem with the way it will automatically follow location header. I assume it does this to be helpful but i do not want it that way. I do not want inet control to follow location headers. I want it to return the result exactly as the server gives it, even if its a code 302.
I assume there is a flag somewhere that i can tell it not to follow redirections.
How do i do this?
Thanks.
Make A Call
hi is it possible to make calls from your computer in vb liek the phone thing you get with windows. and is it even possible to talk through it. and maby even let you know if someone is calling and the number for a caller display prog
please help, this prog will be very handy
How To Make An Id Call
Hi,
i live in brazil-São Paulo
and i wnat to know how i can make an Id call to use in my project!
If someone had a project that´s work
please send me a reply with the source or explanation!!!
Witout more
4nd50
...::andso::...
Cancel Call Before Make It.
Hi,
I've a program where i can click on 3 names off persones. If i select on one off them (with checkbox) and click then the info-button, then it shows the information off that person.
In that info-form i can click on a button to make a call with that person. But if i click "make call" everything is working exept if i click cancel. Than i have the problem that i cann't click annymore on the checkbox of that person. It's blocked.
If i click cancel then i do the next code: mscomm1.portopen = False.
The strange thing about it, is that when i wait to click cancel until the number is make it (when you cann't hear the beeps anymore) that then everything is working ok. So when i click cancel before the number is make it, i've problems with my checkbox. Do i need more code to cancel this phone-call?
greeting PB
Help Using MSCOMM To Make A Call.
I currently am using mscomm to make a call through my modem. It works just fine. The thing is, I simply don't know how to send sound from my computer through the modem to the person who answered the phone.
Basically, I want to be able to use a microphone to talk to the person who answered the phone, and then hear what he said through my speakers. Surely this is possible, and perhaps I just don't know exactly how to word my search on the internet.
Any ideas?
Make A Phone Call !!!
How can I make a telephone call through program and talk & listen thro' Microphone & speakers?
Make A Phone Call On My Modem
hi,
i have this program http://www.big-links.com/modem.rar
and it is working fine
only i want to have some space between the numbers so that when i call for example 579-365783 that he got to wait for 30secondes and then presses 34556 on the same line is that possible?
like 579-365783.......................................................34556
if it is what is the script for it
thx for helping
TAPI: How To Make Call And Send *.wav?
Dear all,
Cloud you please to show sample or explain me, How to use TAPI for make a call and send *.wav (voice)?
Thanks in advance.
Best regards,
Edited by - teera on 12/3/2004 6:20:04 PM
How To Make A Blocking Shell Call
Hi,
Does anybody know how to make a blocking shell call.
let me explain, I'm programming a device by using the serial port
and an external program. after this external program is done, I need to check the device using the same serial port.
With AppActive does not work because the external progam pops up some windows, letting AppActive think that the program is done.
Thx,
Jewe
Howto Make A Voice Call Using GSM Modem
Hi,
I want to develop an application by which I can make a call using my gsm phone and HyperTerminal. When i give the ATD+91{Number} it shows calling screen and exits. Can you please help me on this. Does any one have a source code for this.
Have Program Make Phone Call If Error
Does anyone know how I could have my program make a phone call if it errors out?
We have modems hooked up to the server. If my program bombs out, I would like it to make a phone call and make it so the number that shows up on the caller id to read 999-9999.
Anyone have any ideas?
Thanks
How Do I Make A Variable Optional In A Fuction Call??
I know there is a way but do not remember it.
I need to call Function abc(var1 as integer, var2 as integer)..
But I want var2 to be optional. How do I do this?
And when I do this if it is NOT sent can I assume that is VBnull?
Meaning if var2 is not sent can I say:
if var2=vbnull
Or is there another way to do it.
Thanks.
Can You Make An HTML Front-end In VB?
I want to make an user-interface in HTML where I can use Dreamweaver and such softwares to beautify my front-end in VB. Please guide me as to how is this possible from my VB application?
Make Html Pages
hi, is there a way to make a vb application to make html (.htm) pages from some values in text boxes like one text box does the text to be displayer and one has some title and so on?
How Create Application To Make Phone Call On Pocket PC Using Vb
Hi anyone out there
is there a way to How create application to make phone call on Pocket PC using vb
or another way is i now had a textbox to store telephone number and a button "call" to call telephone number
on the form is there any code to implement so when i type in telephone number inside textbox and press call it start to call other people
Thanks alot!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Make Difficult HTML Report
He everyone,
Currently I'm trying to make a stock control application for my company. There is some stock that is counted every day. From this stock I want to make a report to see how much is missing each day. I made a form on which the user can select a from and to date. In a dbf file is the stock data, it contains count date, counted article number and the number of articles counted.
I want to sort the report on article, but I can't figure out how I can create such a report. it should look like:
Article number 1
day1 : number of articles
day 2: number of articles : difference day 1 and day 2
day 3: number of articles : difference day 2 and day 3
article number 2
day1 : number of articles
day 2: number of articles : difference day 1 and day 2
day 3: number of articles : difference day 2 and day 3
etc.
So far I've only code to open the connection with the dbf file and the begin of the report:
Dim sqlstring As String
Open App.Path & "Stock.html" For Output As #1
Print #1, "<head>"
Print #1, "<title>Stock</title>"
Print #1, "</head>"
Call SMSPath 'This gets the correct path for the dbf file
Set cnn = New ADODB.Connection
cnn.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;Extended Properties=;DSN=Visual FoxPro Tables;UID=;SourceDB=" & SMSPath & ";SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine; "
cnn.Open
Dim rs As ADODB.Recordset.
Set rs = New ADODB.Recordset
sqlstring = "Select * From Stock"
rs.Open sqlstring, cnn, adOpenForwardOnly, adLockReadOnly
Can anyone help me getting started with the report?
Thank in advance.
Rob
Does Anyone Know How To Make A Good HTML Editor
Does anyone in here know how to make a good html editor i would prefer it be in vb .net language but i could rea arrange it if it were in vb6 or something like that. i really need an html editor for a program i am writing so any help you could give me at all would be great!
Thanks!
How To Make Changes To Html Before The Page Displays.
hi all,
I want to make a program that hides certain elements from a downloaded web page.
I would use SHDocVw to detect any open Internet explorer windows, something like:
For Each Web In IE
If TypeOf Doc Is HTMLDocument Then
......
End If
Next
Then I would like to 'intercept' the html code before the page is displayed.
I though of using:
Doc.designMode = "On"
and then make changes to the html, and turn designmode off again.
Is this the correct way to realize this?
Any ideas and help more then welcome.
Thanks
Kris
How Can I Make An HTML File Using Textbox Info?
The way I have it now it puts " on the top and " on the bottom of my file. This is my code. It get's input from textboxes and puts that inside a table in a HTML page. I know my problem is that it is saving it as a string so it puts " " around it. How can I get around this?
Dim x As Integer
Dim web1data As String
Dim web2data As String
Dim web3data As String
Dim web4data As String
Dim web5data As String
Open "specials.html" For Output As #1
Open "specials.txt" For Output As #4
Open "webpage/web1.txt" For Input As #2
Open "webpage/web2.txt" For Input As #3
Open "webpage/web4.txt" For Input As #5
Open "webpage/web5.txt" For Input As #6
Do While Not EOF(2)
Input #2, web1data
TextBox1.Text = TextBox1.Text + web1data
Loop
Close #2
TextBox1.Text = TextBox1.Text + " " + Text1.Text
Do While Not EOF(3)
Input #3, web2data
TextBox1.Text = TextBox1.Text + web2data
Loop
Close #3
For x = 0 To 6
TextBox1.Text = TextBox1.Text + "<tr><td width=75% height=20><b><font size=4>"
TextBox1.Text = TextBox1.Text + Text(x).Text + "</font></b></td><td width=25% height=20><b><font size=4>"
TextBox1.Text = TextBox1.Text + Price(x).Text + "</font></b></td></tr>"
Next x
Do While Not EOF(5)
Input #5, web4data
TextBox1.Text = TextBox1.Text + web4data
Loop
Close #5
Do While Not EOF(6)
Input #6, web5data
TextBox1.Text = TextBox1.Text + web5data
Loop
Close #6
Write #4, TextBox1.Text
Write #1, TextBox1.Text
Close #4
Close #1
End Sub
How To Make OCX Like Real Control In HTML <form>?
Please I need a bit of help. I`m trying to create a OCX control which loads in a web page (in MSIE). The problem is that I can`t make it work exactly as control like <input type...> controls in HTML <form>.
If somebody knows the Microsoft date/time control- it can be used this way:
Code:
<form method=post action="http://www.mydomain.com/info.php">
<object id="calEndDate" style="left: 0px; width: 150px; top: 0px; height: 22px" name="date"
classid=clsid:20DD1B9E-87C4-11D1-8BE3-0000F8754DA1 width="150" height="22" codebase="http://activex.microsoft.com/controls/vb6/MSCOMCT2.CAB"></object>
</form>
and on the server side I receive a variable named date which contains the value of the OCX control without any additional JavaScript! Thats what I`m trying to create using VB6.
The OCX source I use is like:
Code:
Public Property Get value() As String
value = Text1.Text
End Property
Public Property Let value(val As String)
Text1.Text = val
End Property
and JavaScript receive the value of my control, but submitting the form do not send this value to the server! Whats the sicret?
Thanks in advance...
BAba...
How Can I Download HTML Document With ITC And Make It A MSHTML.HTMLDocument Object?
MSDN says that HMTL DOM document object (MSHTML.HMTLDcument) can be created from document loaded in Webbrowser ctr or IE automation object.
But ITC getchunk returns string or byte array, so this doesn't work:
VB Code:
Private Sub Inet1_StateChanged(ByVal State As Integer)Dim docHTML As New MSHTML.HTMLDocumentIf State = 12 Then Set docHTML = Inet1.GetChunk(0, icByteArray) 'this doesn`t work Set docHTML = Inet1.GetChunk(0, icString) 'this ofcourse also doesn`t workEnd IfEnd Sub
Do really the only solution is save string (or barray) to file (.html), then open it with Webbrowser (or IE) and only then create object (MSHTML.HMTLDcument) from it? Thats an ugly and slow workaraound!
Any ideas welcomed!
Struggling To Make First Object - Make Class Property = To Combo Box On Form
I have an attachment that I would like someone to take a look at.
If you extract to C: it should create a folder named TEST with the Visual Basic code and a .mdb database.
Basically I've created a Class1 module and would like to make its Name property equal to whatever the Combo1's text comes up as (combo box) on Form1. At the end of the Form Load, it has a message box but it comes up blank. I'm pretty sure that I've got my Property Get sub commands correct in the class.
Depending on the default user initials that come up (gvntUser) then there are certain options allowed based on their profile. Some would be in a read-only category and only certain command buttons would be visible. An example of this is in the Class1 class. Class1.ReadOnly would store the property of true or false.
This of course is first of all based on the initial collection of pulling from orderentry.mdb database and then basing it on the Form1.Combo1.Text field as the Key. But I perceive something is not allowing this to happen as the Form is loaded...
This is just a test program that I'm learning through
On my real program, I have numerous combo boxes - some for salespeople, and some for types of orders.
Any suggestions is much appreciated. Thanks in advance for all of your replies.
How Can I Make A Program That Will Make It So That Windows Recognises A File-type?
can any1 help? i am making a program which uses *.pli files, and i want my system to recognise them instead of showing them up with the white icon with the windows system. I no i can do it by going into the folder options (I have windows 98 btw) but can u get vb to do it 4 u in a program? (This program is going to be distributed among lots of people who all use windows, but not necessarily windows 98, i dunno if that makes any diff.)
thanks
How To Make A &"http Request&"??
hi,
i would like to let my vb6 app perform an "http request"!?
the messages i want to receive are in XML format!
how can i do this?? i need to post and receive messages!
thx & greets
matthias
HTTP POST In VB6
I have been working on an application that will upload a zip file from a computer to a websever using HTTP POST. I have been able to transmit data that would otherwise appear as text, but I have been having problems with the binary data in the zip file. I can upload it fine using a standard web form (input type="file" name="zip_file"...), but when I try sending the same file from my program, I only get the first 800 bytes or so. Here are some code fragments.
First, This is the code used to make the buffer which will be posted. UrlEncode remove spaces and other forbidden characters from the username. That part works perfectly.
Code:
Private Sub LoadZipFile()
On Error GoTo LoadError
Dim tempBuffer As String
user = mUpload.UrlEncode(user)
mUpload.postBuffer = "handle=" + user + "&zip_file="
Open zipPath For Binary Access Read As #1
Dim length As Long
length = LOF(1)
tempBuffer = String$(LOF(1), 0)
Get #1, , tempBuffer
Close #1
length = Len(tempBuffer)
mUpload.postBuffer = mUpload.postBuffer + tempBuffer
length = Len(tempBuffer)
workState = 6
Exit Sub
LoadError:
MsgBox ("There was an error loading the zip file to memory.")
workState = 9
End Sub
And later after all the connections are made, the buffer sent to the server using this code. hURL is a handle to the script on the server, returned from HttpOpenRequest from the winInet.dll library. HttpSendRequest is part of the same library.
Code:
If HttpSendRequest(hURL, "", 0, postBuffer, Len(postBuffer)) Then
Http Post
I've searched high and low and cant seem to find a straight forward solution to my problem. I'll explain quickly what I'm trying to do. I have added a context menu item in outlook 2003 to capture the html body of an email. I want to send the contents of the variable where I have stored this html body to and ASP but I can't seen to find how to do it. I'm sure I have to use and Http post. HELP PLEASE!! Thanks in advance.
|