Solved

Persistent HTTP Connection

Posted on 2013-06-07
4
342 Views
Last Modified: 2013-06-10
In VB.Net how would I go about sending a service request to a url
WITH
A persistent, long-lived HTTP connection?

I need to receove a steady stream of information and send to SQL Server

I can do the send along to SQL Server part.
0
Comment
Question by:lrbrister
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 70

Accepted Solution

by:
Qlemo earned 500 total points
ID: 39232844
Though HTTP isn't intended for keeping persistent connections, you can set up keep-alives for the corresponding socket:
http://technet.microsoft.com/en-us/library/cc957549.aspx
http://blogs.technet.com/b/nettracer/archive/2010/06/03/things-that-you-may-want-to-know-about-tcp-keepalives.aspx
0
 

Author Comment

by:lrbrister
ID: 39235450
Qlemo,
 I'm trying to slog through the examples on the links.

Do youhave a "cut through the red tape" example code?

I don;t need you to write my program.
Just a "keypoint" start
0
 
LVL 70

Assisted Solution

by:Qlemo
Qlemo earned 500 total points
ID: 39235517
Sorry, not really. I would have to mock up something without testing it ;-).
You will probably use this method http://msdn.microsoft.com/en-us/library/e160993d.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1
to allow KeepAlives on an already open socket. I assume you have all the other code ready (open up a socket and such).
0
 

Author Closing Comment

by:lrbrister
ID: 39235703
Close enough

Thanks
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question