Results 1 to 19 of 19

Thread: [2008] Form to ping RSS services

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2008
    Posts
    159

    [2008] Form to ping RSS services

    I have been looking for code that I can look at
    for an idea on how to take a list of websites fed
    to a textbox that I could ping against a list of RSS
    feed sites.

    Does anyone know how to accomplish something
    like this in VB.net 2008?

    Chris

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    May 2008
    Posts
    159

    Re: [2008] Form to ping RSS services

    Currently all I can think of is adding a single textbox and button to a form and using system.diagnostics.process.start (textbox1.text) where I'd input the url I'd like to post to but I can't figure out how to add a list of urls to post to using the input from the textbox. I'm very much new to coding so bear with me.

    Chris

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2008] Form to ping RSS services

    The Framework includes a Ping class so the pinging isn't a problem. What is the actual question? Is it how to allow the user to provide a list of addresses? If so then a TextBox, a Button and a ListBox will do the job. Alternatively, you could use a DataGridView with a single column. That way there's always an empty cell at the bottom for new input. Whenever the user enters a new value the grid will automatically add a new empty cell for the next input.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    May 2008
    Posts
    159

    Re: [2008] Form to ping RSS services

    What I ultimately am trying to accomplish is a form where I preload a list of websites that I will ping rss feeds that end user inputs into the form. So end user will input a series of rss feeds into form which will be saved and then once the button is pressed it will go down the list and ping each input rss feed to the list of rss ping services.

    I'm new to coding so I'm not quite sure what code to use. Is there any resource to find what code I would be using to accomplish this task? I'm learning this by myself and I appreciate all your help!

    Chris

  5. #5
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: [2008] Form to ping RSS services

    here is a start. take this, modify it (listbox, button), and post that code with additional questions.

    Code:
    If My.Computer.Network.Ping("www.yahoo.com") Then
       MsgBox("Server pinged successfully.")
    Else
       MsgBox("Ping request timed out.")
    End If
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    May 2008
    Posts
    159

    Re: [2008] Form to ping RSS services

    Great. One question, how do I get it to take a list of user input rss feeds and go down that list against the rss ping services?
    I could ultimately use something like pinggoat.com to ping them for me but I'd like to have both options available for user input.
    PingGoat posts look like this:

    Code:
    http://pingoat.com/index.php?pingoat=go&blog_name=test&blog_url=http%3A%2F%2Fwww.test.com&rss_url=http%3A%2F%2Ftest.com%2Fa.xml&cat_0=0&id[]=0&cat_1=0&cat_2=0
    I have no idea how to put that http request along with the user input to create a valid post.

    Chris
    Last edited by cmmorris1; Sep 29th, 2008 at 12:45 PM.

  7. #7
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: [2008] Form to ping RSS services

    you can't ping a service, you can ping a site i.e. pingoat.com
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  8. #8
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: [2008] Form to ping RSS services

    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    May 2008
    Posts
    159

    Re: [2008] Form to ping RSS services

    Sure, that is what I meant. Sorry. I currently use a commercial software
    to do this for my sites but I'm thinking that it's best for me ( in order to learn coding) to learn to do this myself for applications that I am interested in.
    Kinda a learn as you go type deal. :-)

    Chris

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    May 2008
    Posts
    159

    Re: [2008] Form to ping RSS services

    I'm trying to work out how to take the user input website addresses from textbox1.text and use your code to ping a site. Here is all I know how to
    do:

    vb Code:
    1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    2.         Dim site As String
    3.         site = TextBox1.Text

  11. #11
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: [2008] Form to ping RSS services

    Quote Originally Posted by cmmorris1
    I'm trying to work out how to take the user input website addresses from textbox1.text and use your code to ping a site. Here is all I know how to
    do:

    Code:
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim site As String
            site = TextBox1.Text
    
            If My.Computer.Network.Ping(site) Then
                MsgBox("Server pinged successfully.")
            Else
                MsgBox("Ping request timed out.")
            End If
        End Sub
    try this.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  12. #12

    Thread Starter
    Addicted Member
    Join Date
    May 2008
    Posts
    159

    Re: [2008] Form to ping RSS services

    Ok, that works for pinging the site input in textbox1.text.
    Perhaps I wasn't explaining this correctly. I want to allow
    a user to input a website into the textbox and then it will
    ping / post to an rss service. Not actually ping the site like
    ipconfig /ping but ping as in post the url to an rss service
    for updating content.

    Update: That code didn't work. I either get a message saying
    it timed out or I get an unhandled pingexception.

    Chris

  13. #13
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: [2008] Form to ping RSS services

    post code for ping failure


    see post #8 for RSS
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  14. #14

    Thread Starter
    Addicted Member
    Join Date
    May 2008
    Posts
    159

    Re: [2008] Form to ping RSS services

    Post number 8 has nothing to do with what I'm looking for.
    Also, I gave an example using pinggoat.com service to ping
    an rss feed but have no idea how to incorporate the input
    url into that http request. See post 6

    Here is a sample list of sites I want to post to using the input
    rss feed from the user:

    Code:
    http://www.popdex.com/addsite.php
    http://rpc.pingomatic.com/
    http://rpc.weblogs.com/RPC2
    http://www.a2b.cc/setloc/bp.a2b
    http://api.feedster.com/ping
    http://api.my.yahoo.com/RPC2
    http://www.blogdigger.com/RPC2
    http://www.blogshares.com/rpc.php
    http://www.blogstreet.com/xrbin/xmlrpc.cgi
    http://ping.blo.gs/
    http://ping.feedburner.com
    http://ping.syndic8.com/xmlrpc.php
    http://ping.weblogalot.com/rpc.php
    http://rpc.blogrolling.com/pinger/
    http://rpc.technorati.com/rpc/ping
    http://topicexchange.com/RPC2
    http://xping.pubsub.com/ping/
    http://api.my.yahoo.com/rss/ping
    http://api.moreover.com/ping
    http://rpc.icerocket.com:10080/
    http://1470.net/api/ping
    http://bitacoras.net/ping
    http://blogmatcher.com/u.php
    http://bulkfeeds.net/rpc
    http://coreblog.org/ping/
    http://ping.amagle.com/
    http://ping.bitacoras.com
    http://ping.cocolog-nifty.com/xmlrpc
    http://ping.rootblog.com/rpc.php
    http://rcs.datashed.net/RPC2/
    http://rpc.blogbuzzmachine.com/RPC2
    http://www.bitacoles.net/ping.php
    http://www.blogoole.com/ping/
    http://www.blogoon.net/ping/
    http://www.blogpeople.net/servlet/weblogUpdates
    http://www.blogroots.com/tb_populi.blog?id=1
    http://www.blogsnow.com/ping
    http://www.lasermemory.com/lsrpc/
    http://www.newsisfree.com/xmlrpctest.php
    http://www.snipsnap.org/RPC2
    http://www.weblogues.com/RPC/
    http://xmlrpc.blogg.de/
    Last edited by cmmorris1; Sep 29th, 2008 at 03:35 PM.

  15. #15

    Thread Starter
    Addicted Member
    Join Date
    May 2008
    Posts
    159

    Re: [2008] Form to ping RSS services

    Here is my project guys so you can see exactly what I am
    looking to do. Anyone who knows about RSS pinging will
    understand this.

    pinger.zip

    Chris

  16. #16
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: [2008] Form to ping RSS services

    If you are talking about something like this

    RSS Ping

    i suggest you contact the author(s)

    http://www.google.com/search?q=rss+ping&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-USfficial
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  17. #17

    Thread Starter
    Addicted Member
    Join Date
    May 2008
    Posts
    159

    Re: [2008] Form to ping RSS services

    More like this.

    http://www.badassrss.com/

    Except posting rss feed to individual rss posting websites instead of
    using a single service like pinggoat.com

    I've fixed the remove item in listbox1 issue, how do I take the input
    urls from listbox1 and ping the websites in listbox2?

    pingerupdate.zip

    Chris
    Last edited by cmmorris1; Sep 29th, 2008 at 05:12 PM.

  18. #18

    Thread Starter
    Addicted Member
    Join Date
    May 2008
    Posts
    159

    Re: [2008] Form to ping RSS services

    What am I doing wrong here? I am trying to take urls input
    into listbox1 and use a get request using the urls against listbox2
    urls?

    Code:
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            Dim site As String
            site = ListBox1.Items
            Net.HttpWebRequest.Create(site)
            MsgBox("site updated")
        End Sub
    I know I am missing a lot of code here guys like a loop to cycle through all
    the input urls from listbox1 & 2. But I do not know how to construct this whole
    thing. I really appreciate everyone's help though. :-)

    This is my form layout and I need the urls input into listbox1 to use the get request against the urls in the listbox2 and loop until all urls in both boxes are finished.


    Chris
    Attached Images Attached Images  
    Last edited by cmmorris1; Sep 29th, 2008 at 07:00 PM.

  19. #19

    Thread Starter
    Addicted Member
    Join Date
    May 2008
    Posts
    159

    Re: [2008] Form to ping RSS services

    Can someone help me figure out how to fix this? I have a ping button on a form that I want to take the input from feeds to ping bog (listbox1) and ping these rss services from (listbox2) in a loop. Here is the code that I currently have, I can't figure out how to use the feeds in my listbox2 so I have some hard coded in the Ping button.

    vb Code:
    1. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    2.         Dim listToPing As New ArrayList
    3.         Dim pingURL As String = ""
    4.         Dim blogURL As String = ""
    5.         Dim blogName As String = ""
    6.  
    7.         With listToPing
    8.             .Add("http://rpc.technorati.com/rpc/ping")
    9.             .Add("http://api.feedster.com/ping")
    10.             .Add("http://ping.feedburner.com")
    11.             .Add("http://blog.goo.ne.jp/XMLRPC")
    12.             .Add("http://ping.blo.gs/")
    13.             .Add("http://ping.bloggers.jp/rpc/")
    14.             .Add("http://ping.blogmura.jp/rpc/")
    15.             .Add("http://ping.cocolog-nifty.com/xmlrpc")
    16.             .Add("http://ping.syndic8.com/xmlrpc.php")
    17.             .Add("http://rpc.blogbuzzmachine.com/RPC2")
    18.             .Add("http://rpc.blogrolling.com/pinger/")
    19.  
    20.         End With
    21.  
    22.         For i As Integer = 0 To listToPing.Count - 1
    23.             Try
    24.                 pingURL = listToPing.Item(i).ToString
    25.                 Dim technoratiPing As Net.HttpWebRequest = CType(Net.WebRequest.Create(pingURL), Net.HttpWebRequest)
    26.                 technoratiPing.Method = "POST"
    27.                 technoratiPing.ContentType = "text/xml"
    28.                 Dim streamPingRequest As IO.Stream = CType(technoratiPing.GetRequestStream, IO.Stream)
    29.                 Dim xmlPing As Xml.XmlWriter = New Xml.XmlTextWriter(streamPingRequest, System.Text.Encoding.UTF8)
    30.                 xmlPing.WriteStartDocument()
    31.                 xmlPing.WriteStartElement("methodCall")
    32.                 xmlPing.WriteElementString("methodName", "weblogUpdates.ping")
    33.                 xmlPing.WriteStartElement("params")
    34.                 xmlPing.WriteStartElement("param")
    35.                 xmlPing.WriteElementString("value", blogName)
    36.                 xmlPing.WriteEndElement()
    37.                 xmlPing.WriteStartElement("param")
    38.                 xmlPing.WriteElementString("value", blogURL)
    39.                 xmlPing.WriteEndElement()
    40.                 xmlPing.WriteEndElement()
    41.                 xmlPing.WriteEndElement()
    42.                 xmlPing.Close()
    43.                 Dim technoratiPingResponse As Net.HttpWebResponse = CType(technoratiPing.GetResponse, Net.HttpWebResponse)
    44.                 Dim streamPingResponse As IO.StreamReader = New IO.StreamReader(technoratiPingResponse.GetResponseStream)
    45.                 Dim strResult As String = streamPingResponse.ReadToEnd
    46.                 streamPingResponse.Close()
    47.                 technoratiPingResponse.Close()
    48.             Catch ex As Exception
    49.                 'Add code here to flag a service as broken
    50.             End Try
    51.         Next
    52.     End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width