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
-
How can I send a file to a CD - RW I use both Word & Excel-2010
How can I send a file to a CD - RW disc. I use the two Excel & Word
Try the help files?
I tried Google?
http://www.Google.com/search?q=how+to+burn+data+files+Windows+7&ie=UTF-8
-
Can BBM sends the HTTP request to the server
You can make your application HTTP connections. The BBM API are not involved with it. Guide to networking found here: https://bdsc.webapps.blackberry.com/java/documentation/ww_java_networking/Intro_networking_1984362_1...
-
How can I PDF scanned or pages of the Web site using HP Officejet ro 8600?
How to make the scanned PDF files and information on the Web site using a HP Office Jet Pro 8600?
Hello zenshemag,
Thank you for being an active member of the HP supports the community. I understand that you do not want to change the type of your files scanned as pdf document.
If you have analyzed the issue as a document it should have it scanned in pdf document. If you scan pictures and prefer them to be a pdf document, please select the type of document, then it will scan the picture in pdf format.
If this isn't what you're asking, then there are of many available online free pdf converters. Each has its advantages and disadvantages so I recommend you research before you choose one that will work best with your needs.
-
How to send data from the client to the server using tcp
1. as I am new to watch I need help with sending data from client to server. I went through various examples of labview, but each of them also explains transfer of data to the client server. But I need help regardng send data from the server to the client.
2.i would use the data type variant for sending my data.
Can someone help me please. Thank you
Regardless of the meaning. Once you have a connection each end allows it to send data to another. Just create what you want to look like interaction.
Do you want the client sends a command that request data?
How do you think the response data to look like?You can send variants, but probably not worth the effort.
Mike...
-
How can I send an e-mail to a smart phone?
How can I send an email or a hot link for a smart phone? Of course, the smart phone has only a digital set is possible to send it to a smart phone?
You can use a qrcode, on the computer, copy the link of the site, go to this site:
Paste the link in the form, select static, click on generate, now save the qrcode and send by e-mail or connect the Mr. smarth phone to your pc, transfer on Mr. smarth phone qr code, then use an application to read the qrcode on Mr. smarth phone
type the link in an email and send to yourself, then open the email in your smarth phone or send to someone
-
How can I send my photo in my library on my account of watsaap from a friend?
How can I send my picture to my liberary photo to my friend watsAap account
Moved from the community involvement Center
-
How can I send a photo of my file to ebay easily
How can I send a photo of my file for display on ebay selling site easily
Hi Helenseymour,
You can see the article for the download of images on the ebay site.
http://pages.eBay.com/help/sell/pictures.html
Alternatively, you can contact ebay support for assistance.
eBay Support
http://pages.eBay.com/help/account/contact-customer-support.html
I hope this helps.
-
How can I send the snowdrift police to my brother
How can I send the snowdrift police to my brother
It comes in a zip file that you can attach it to an email. Or, simply let him download itself.
http://www.xmasfonts.com/details/snowdrift.html -
How can I send my hotmail contact list to my other computer and outlook express
How can I send my hotmail this cell phone contact list to my other computer and outlook express
Hi MARKRUBERG,
You can follow the steps from the link below: how to export a Hotmail address book to a Microsoft Outlook Express address book: http://support.microsoft.com/kb/883771
With regard to:
Samhrutha G S - Microsoft technical support.
-
How can I send a video attachment of 50 MB using Windows Live Mail?
Original title: Video accessories in Windows Live Mail.
How can I send a video attachment of 50 MB using Windows Live Mail? I know that skydrive stores the photos but not videos. In addition, why my spell checker doesn't work? Word count, works etc. but not check spelling. It is grayed out. Thank you...
Hello
Thanks for choosing Microsoft Community!
If I understand correctly, you have problems with Windows Live Mail on Windows Vista.
Please answer these questions:
Are you referring to the spell checker in Windows Live Mail?
For problems with Windows Live Mail post the question in the forums of Windows Live Mail.
Here is the link: http://answers.microsoft.com/en-us/windowslive/forum/hotmail
Hope the helps of information. Don't answer if you need assistance, we will be happy to help you.
-
How can I send pictures to the email address of someone, after I just finished imported
How can I send picturesto advertising by e-mail
dress
Unlike Windows XP & Vista, Win7 does not have a default email Client. [What were thinking?]
You will need to install a (e.g. MS Outlook;) Windows Live Mail; Thunderbird) , and then set it as a default for mail in CUSTOM (<>) article in Set Program Access and defaults of the computer , then restart your computer before any function send to or MailTo will become available.
You will find support for Win7 e-mail Clients in this forum: http://answers.microsoft.com/en-us/windows/forum/windows_7-networking?page=1&tab=all
In these forums, you will find support for Windows Live Mail:
http://windowslivehelp.com/forums.aspx?ProductID=15 -
How can I send an AVI file by e-mail?
How can I send a video (avi) from microsoft about 9 MB by e-mail? This was made by a playblast in Autodesk Maya. I would also like to know if I can send an AVI made first by email - of makes in Maya.
How can I send a video (avi) from microsoft about 9 MB by e-mail? This was made by a playblast in Autodesk Maya. I would also like to know if I can send an AVI made first by email - of makes in Maya.
==================================
You can attach the video in an e-mail message as long
as the file size does not exceed the limits of your provider.What are the limitations of email
Internet service providers and other suppliers?
http://support.e-zekiel.com/templates/manual/details.asp?ID=31606&fetch=26546If the file size is a problem... it may be worth trying to download
the file following the site and send your recipients the
Download link:"SendSpace.
http://www.sendspace.com/Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.
-
How can I send a picture of my office by email to my cell phone__
Remember - this is a public forum so never post private information such as numbers of mail or telephone!
How can I send a picture from my office to my phonw cell, I don't know if an application exists which allows me to do, or how can I transfer the photo on my phone memory card? Ideas:
- You have problems with programs
- Error messages
- Recent changes to your computer
- What you have already tried to solve the problem
If you do not have e-mail from your wireless provider, or they do not allow attachments sent from a computer, just to get a SD memory card reader. Stick the card in the reader. Plug it into a USB port and drag the pix on him. Works just like a flash drive.
This is just an example:
http://www.Amazon.com/ELAGO-speed-memory-reader-writer/DP/B0028Y9BX8Google for them. I bought 4 GB cards with a drive for less than $10.00 on eBay. Bruce Hagen MS - MVP [Mail]
-
How can I send a scan of my computer? HP 6500 has more windows 7
How can I send a scan of my computer?
HP 6500 has more
Windows 7
Hello
You can download the manual from the following link:
http://h10032.www1.HP.com/CTG/manual/c02519721.PDF
Kind regards.
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
-
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
-
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