Solved

Persistent HTTP Connection

Posted on 2013-06-07
4
328 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
  • 2
  • 2
4 Comments
 
LVL 68

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 68

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now