Re: WINSOCK Question.



Not sure if your talking about an html <input / submit "POST"
as opposed to a "PUT" command, if so, you might want to try
the file:// attribute on the front of the file path, as it looks like
you are trying to send a file.

--
Jim Carlock
Please post replies to newsgroup.

"Jim Carlock" wrote:
Port 80 is the http port that all websites are sent over when a
browser sends a GET command to it.

Once you establish a connection you need to send the GET command
with a couple other things...

The link below shows how to use WinSock to connect successfully
and grab a webpage from an http server.
http://www.vbip.com/winsock/winsock_http_02_01.asp

Hope that helps.

--
Jim Carlock
Please post replies to newsgroup.

"Wiley Coyote" <newbie@xxxxxxxxxxxxx> wrote in message news:eAoYy47NFHA.2736@xxxxxxxxxxxxxxxxxxxxxxx
I have a VB app that Up and Downloads files from an IIS server. The download
works great (using ITC). As I could not get ITC to post to the server, I
decided to use winsock.

I successfully create a connection to the server (winsock1.state = 7) that's
all good. However, when I try to use the SENDDATA method, my laptop Beeps,
then everything justs hangs.

Here is a snippet of code:
StartClock
MsgBox ("State: " & wsUpload.State)
wsUpload.SendData strPostData
DoEvents
blnConnected = wsUpload.State
MsgBox (blnConnected)

RemotePort is 80 (i.e. IIS default port). No security (NTFS etc) issues as
this is on my laptop.

Does anyone have any ideas as to what is gone goofy? Do I need to run a
Server Side app that listens for and responds to my Winsock app?

Alternatively, if somone could tell my why the POST method of ITC isn't
working that would helpful as well.

Here is code snippet from the ITC test app:
.Execute , "PUT ", "c:\temp\return.htm"

Thanks in advance.

:)
Wiley




.



Relevant Pages

  • Re: Visual Basic for Autorun?
    ... > bootstrap files must be installed prior to running the app. ... Jim Carlock ... Post replies to the newsgroup. ...
    (microsoft.public.vb.general.discussion)
  • Re: How to change drive serial no
    ... "Jim Carlock" wrote in message ... > someone well versed in assembly language. ... > Post replies to the newsgroup. ... > "Amrit" wrote in message ...
    (microsoft.public.vb.general.discussion)
  • Re: How to change drive serial no
    ... }"Jim Carlock" wrote in message ... >> pointers used in DX are pointers to some areas of memory ... >> It's all assembly language when you get that far. ... >> Post replies to the newsgroup. ...
    (microsoft.public.vb.general.discussion)
  • Re: Free Beer!!
    ... >> Jim Carlock ... >> Post replies to the newsgroup. ... >> If anyone could provide me with some working code that'll do a non ...
    (microsoft.public.vc.mfc)
  • Re: Free Beer!!
    ... > Text1.LoadFile "c:\leasedatabase\lease.rtf", rtfRTF ... > "Jim Carlock" wrote in message ... >> Post replies to the newsgroup. ...
    (microsoft.public.vc.mfc)

Loading