How can I set delay time to POST on tcp/ip

I tried to convert to Labview from PHP below source.
but I couldn't check EOF on Labview as php source.
function http_post($host, $path, $data)
$http_response = '';
$content_length = strlen($data);
$fp = fsockopen($host, 80);
fputs($fp, "POST $path HTTP/1.1\r\n");
fputs($fp, "Host: $host\r\n");
fputs($fp, "Content-Type: application/x-www-form-urlencoded\r\n");
fputs($fp, "Content-Length: $content_length\r\n");
fputs($fp, "Connection: close\r\n\r\n");
fputs($fp, $data);
while (!feof($fp))
$http_response .= fgets($fp, 128);
fclose($fp);
return $http_response;
?>
Attachments:
tcp_post.vi ‏28 KB

Hello mostech,
I, personally, am not very familiar with PHP, but I am somewhat familiar with ASP, http, etc. (Same idea, different language). From the code you posted, it looks like you are just trying to read the HTTP response from whatever server you are posting data to. To do this in LabVIEW, you will use TCP Read; and rather than constantly checking explicitly for the EOF, you can let the TCP Read error out. In other words, keep calling TCP Read in a while loop (like you have in your PHP code), and make the stop condition be a TCP Read error.
I found an example program on our website submitted by another customer. It looks like it is doing something similar:
Example HTTP Protocols
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=CA9910104C671493E034080020E74861&p_...
Hope this helps!
Charlie S.
Visit ni.com/gettingstarted for step-by-step help in setting up your system

Similar Messages

  • How can I set my time capsule to back-up only once a day?

    How can I set my time capsule to only back-up once a day.  It appears to be backing up several times a day.  Not sure there is a set schedule for the back-ups and they take a great deal of time; over an hour each.

    tdenny2 wrote:
    Not sure there is a set schedule for the back-ups and they take a great deal of time; over an hour each.
    Then something is wrong.  Changing the schedule will only deal with the symptom (and give up one of the better features of Time Machine's usually quick and unobtrusive hourly backups).
    See if the size of the backups makes sense, considering what you've changed since the previous one.  If it seems much too large, that may be the problem.  See #D4 in Time Machine - Troubleshooting for some common culprits and ways to see just what's going on.
    If the sizes seem reasonable, see #D2 in the same link for things that can cause extra-slow backups.

  • How can I set the time between how long my phone plays a text msg ringtone if I don't respond the first time?

    If I don't respond the first time, how can I set how many times/seconds it plays the next time until I respond?

    Actually, there is!
    http://www.apple.com/feedback/iphone.html

  • Hi! how can I set the time machine/capsule back-up intervals? Heron 2

    HI! EVERYBODY,
    HOW CAN I SYNC 2 TIME CAPSULES INSTALLED IN TWO DIFFERENT LOCATIONS, MAIN HOME AND SUMMER HOME?
    THANK YOU FOR YOUR HELP.
    MERCi
    HERON2

    To use different backup intervals use TimeMachineEditor 2.5.3. I do not think syncing two Time Capsule to one another is feasible or possible. For all things Time Machine visit Pondini's Time Machine FAQ

  • Running FF12.0, how can I set maximum time for History Storage? What's the maximum time?

    Previous versions would allow me to set storage time up to 1 year, I think. Now I can't find the path to set this time. I would like to set it to as much as possible.

    Firefox 4+ versions do not have a time limit for the history.<br />
    Firefox determines automatically how many pages can be kept without affecting the performance.<br />
    You can see the current value via the read-only pref places.history.expiration.transient_max_pages on the about:config page.<br />
    You can reset no longer used browser.history_expire_days* prefs from older Firefox versions, if you still have them, to remove them on the next start.
    See Marco Bonardo's blog about this:
    * http://blog.bonardo.net/2010/01/20/places-got-async-expiration
    *Precise Clear History: https://addons.mozilla.org/firefox/addon/precise-clear-history/
    *Expire history by days: https://addons.mozilla.org/firefox/addon/expire-history-by-days/

  • How can I set a time limit... on my own account?

    I've been getting sick of staying up until 3 AM then waking up at 11 AM every day. I think the best way to solve it without sheer will is to just set a time limit on my computer. I know you can do it in Parental Controls, but it only lets you to it to non-admin accounts that aren't yours. Is there a way to set them for your own account via some sort of workaround? Thanks.

    Hello Chuck67322,
    Thanks for contacting Apple Support Communities.
    You could schedule you computer to shut down through the Energy Saver preference. See this article to find out how:
    OS X: Setting a startup or shut down time
    http://support.apple.com/kb/HT3902
    Regards,
    Jeff D.

  • How can I set the time in Time-based Access control ??

    I live in Denmark, where we use the 24 hour system.
    So I want to set the time-based access control to from 7.00 in the morning to 2.00 at night, but every time the Timecapsule says wrong time format, I can use the night time 23.59, but thats not late enough.

    Set two controls.. 7 to 23.59 and 00.01 to 00.20
    This is common as the control cannot handle times longer than 1day.

  • How can I correct the time on posts to a forum

    My posts to the ar15armory show a time 6 hours after I post

    Usually in your forum settings, you will find a time zone selector that the forum uses to customize the display.
    If that's already correctly set, it's possible there is a glitch on the server.
    Anyway, I'm not aware of any way to fix this in Firefox's settings.

  • How can I set the time to remove trash items?

    My trash folder used to empty automatically after a week or so but it no longer empties automatically. Can anyone help me? Thanks.

    Firefox does not have a trash folder, and if you mean the one for the operating system, Firefox cannot control that, and it does not empty automatically either. Do you use webmail? Maybe there is a setting on the web page for emptying trash automatically.

  • How can i set the time the iPad stays bright?

    I know how to set the brightness, but why does the ipad dim so quickly?
    Its the worst if you re studying..
    I recently updated to ios7
    Thanks for help!

    I thought lock and brightness was something different, but it seems better now
    Thanks

  • How can you set the ctxsvr time interval ?

    I would like to know how can i set the time
    inteval between each update of the Intermadia
    indexes.
    Thanks.

    stop and restart ctxsrv on specified intervals.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Lombar vincent ([email protected]):
    I'd like to use the ctxsrv utility, because i want automatic index rebuild.
    But Is it possible to set the time interval
    between each update?<HR></BLOCKQUOTE>
    null

  • How do i set up time restrictions on a phone? I want to limit the late night phone calls coming in and going out for a family member.

    How can I set up time restrictions for a family member? I want to stop the late night calls incoming and outgoing during the week.

        Hi sk8ermommie - We certainly want you to be able to easily monitor and manage the usage on your account! We do offer the Family Base feature that allows you to setup time restrictions. If on a More Everything plan we are currently offering a free 3 month trial, after trial feature is only $5 per month. Visit http://www.vzw.com/familybase for more details.
    Thank you,
    YaleK_VZW
    Follow us on Twitter @VZWsupport

  • How can I set up mhy Airport Express to extend my Time Capsule wifi wirelessly

    I want to extend my wifi off my Time Capsule with an Airport Experess in a part of my house that has no data cable ran to it. How do I do this?
    Thanks

    No more meseges.
    في ٢٦/٠٨/٢٠١٤، الساعة ٢١:٤٥، كتب Apple Support Communities Updates <[email protected]>:
    New discussion activity
    Bob Timmons has posted in the AirPort community.
    How can I set up mhy Airport Express to extend my Time Capsule wifi wirelessly
    Assuming that you have the model A1264 or A1392 version of the Express, it must be located where it can receive a strong wireless signal from the Time Capsule to be able to extend it correctly.
    A good general location would be a point that is about half way between the Time Capsule and other area that needs more wireless coverage.
    You will use AirPort Utility on your computer to configure the Express. An iPhone or iPad could be used as well.
    We can provide more help....if you need it....but we'll need to know what version of AirPort Utility that you are using on your computer....or whether you want to use an iPhone or iPad to setup the Express.
    https://discussions.apple.com/servlet/JiveServlet/downloadImage/2-26506753-46613 2/AboutAirPortUtility.png
    To post a reply, go to the discussion in Apple Support Communities.                                                             
    You are receiving this email from Apple Support Communities. You can change your email preferences in your Apple Support Communities Profile.
    TM and copyright © 2014 Apple Inc. 1 Infinite Loop, MS 96-DM. Cupertino, CA 95014.
    All Rights Reserved | Privacy Policy | Terms of Use | Apple Support

  • HOW CAN I SET TIHE NETWORK TIME BECAUSE IT DOESNT ALLOW ME TO SING IN

    HOW CAN I SET TIHE NETWORK TIME in the apple tv BECAUSE IT DOESNT ALLOW ME TO SING IN

    Welcome to the Apple Community.
    Time and date should be set automatically by the network time server. There has been a number of posts reporting this problem. Solutions have involved:
    Restarting the Apple TV by removing ALL the cables for a few moments.
    Restoring the Apple TV.
    Opening port 123 on the router.
    Ensuring the DNS address on both the router and the Apple TV are those provided by your ISP.

  • I would like to know how can I set songs in iTunes to play at different times automatically during the day. i.e. one song at 10am the other at 10:30am etc..

    I would like to know how can I set songs in iTunes to play at different times automatically during the day. i.e. one song at 10am the other at 10:30am etc..

Maybe you are looking for

  • Guide to Upgrading to Windows 8 on the T540p (+fix for brightness/black screen on wake)

    Hello all. I recently received my new T540p running Windows 7. Although I probably would have qualified for receiving Windows 8 recovery media from Lenovo, I went ahead and did the upgrade myself since I had a copy of Windows 8 laying around (and bec

  • UPGRADE : RFC call to subst_save_upgeval_db failed with key UPDATE_ERROR

    Hello. We are upgrading our NW 7.01 to NW 7.3 ABAP. In Postprocessing phase MAIN_POSTP/CREATE_UPGEVAL we encounter the following error: ERROR: RFC of "subst_save_upgeval_db" failed key: ERROR UPDATE message: EXCEPTION UPDATE_ERROR RAISED Here is the

  • How to slove the rule resoultion

    hai, I have to find the users invloved in the process. I am using the function module 'RH_GET_ACTORS' to get the users. Input is the plant and rule number   swc_set_element ac_container 'plant' plant.   CALL FUNCTION 'RH_GET_ACTORS'     EXPORTING    

  • Need the name of inventory or manufacturing lookup table

    What is the name of the table in Inventory that is used to store the lookup information? To make my question clear here are the steps: 1) login to Oracle EBS (R12) using Inventory responsibility. 2) Go to Setup 3) Go to Lookups - you will see screen

  • Setting up the windows variable

    Hello i need the first step, how do i set up my windows variable so i can conline my java programs? thanks