How can I send a HTTP request to a web server using TCP?

I'm writing a HTTP string to activate a script CGI, server of our company. It seems that the OPEN TCP CONNECTION works. Can I just use the TCP WRITE function to send the HTTP request string to the server?
Thank you
Tim

I know that I probably would have finished faster if I had the Internet Toolbox, but the solution ends up being pretty simple with just the TCP features.
Here is the solution, I came with yesterday (in the case where someone else needs) after searching Protocols TCP as suggested by "Laboratory Viewer" and examine details in the riding of developer. It ends up being only a string of 4 line.

GET HTTP://proxyserver/path/file.asp?id=test HTTP/1.1
HOMEroxyserver

The first line of the string is made up of three things:
(1) the GET command
(2) the URL of the program target (in this case an ASP program that distributes a message preset)
NOTE that in this case, the URL contained "HTTP://proxyserver" and not only the path to the file. If your not using a proxy server, you can probably omit the name of the server of the URL, but you must always the name of the host server to the second line.
(3) the HTTP version used

The second line is the host server.

The last two lines are empty, but the two are apparently necessary to properly close the TCP request.

Vi uses an OPEN TCP CONNECTION to connect to port 80, then the 4 line string is sent with a WRITING of TCP and the connection is closed with a NARROW CONNECTION of TCP.

In my application, when the piece of equipment monitored by LabVIEW begins to enter a dangerous to use, LabVIEW uses this vi to send the HTTP request through the TCP connection and a program of target ASP on the company's web server. The ASP reads the message ID (? id = test) and sends the message page and the text messaging appropriate to maintenance and engineering personnel. People warned by text pagers are supposed to respond immediately.

Our DSI wrote the ASP that allows you to set the ID of multiple message with different distribution lists. Each message is triggered with a different ID of the virtual instrument according to the gravity of the situation.

Thanks to other amateurs who have published their questions and their answers. Hope someone else finds this useful.

Tags: NI Software

Similar Questions

Maybe you are looking for

  • Satellite P500 overheats constantly all game

    I had the laptop for about 3 months now and for the last 6 weeks, he was constantly overheating.I brush the air vents to get rid of the dust, but it doesn't seem to help. The temperature will constantly be at 47%, then suddenly it will overheat after

  • Mail does not start

    Hi all I have a MacBook Pro (Late 2011 - Yosemite 10.10.5). I have updated to OS Yosemite several months before, just after that Yosemite has been released. I never had real problems with the Mail App, but two months ago it just stopped working.First

  • AF for shooting group

    Hi, this is my first post on this forum. I have an EOS 70 d with a 50mm lens.  Suppose I have a portrait of group with two people standing on the left, a banner, and then a permanent of the third person to the right of the banner. I want each of them

  • said always invalid extra data?

    Hello BB NDK devs. Said the structure provided by the libraries of BB C is documented as having data statistics stored in the data, accessible and iteratable via: for (dirent_extra * extra = _DEXTRA_FIRST (dp); _DEXTRA_VALID (extra, dp)); extra = _DE

  • my cd/dvd will not read my cd or dvd

    I don't know what's wrong, but it was working fine the other day and now she even read my cd that looks like it would start the habit and then just stops. I think I have a problem driver, but not sure. I have a dell insipiron 5040. any help would be