Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6715729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:38:55+00:00 2026-05-26T08:38:55+00:00

I copied this script from here but I’m not sure how to modify it

  • 0

I copied this script from here but I’m not sure how to modify it to make it just call the url as a GET request – but I don’t need it to write any file output based on the url’s response.

script.vbs

sSrcUrl = "http://localhost:8080/trigger_url"
sDestFolder = "D:\script\"
sImageFile = "output.txt"
set oHTTP = WScript.CreateObject("MSXML2.ServerXMLHTTP")
oHTTP.open "GET", sSrcUrl, False
oHTTP.send ""
set oStream = createobject("adodb.stream")
Const adTypeBinary = 1
Const adSaveCreateOverWrite = 2
oStream.type = adTypeBinary
oStream.open
oStream.write oHTTP.responseBody
oStream.savetofile sDestFolder & sImageFile, adSaveCreateOverWrite
set oStream = nothing
set oHTTP = nothing

What’s the minimum that this script would need to just ping the url?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:38:56+00:00Added an answer on May 26, 2026 at 8:38 am

    If this:

       Dim sSrcUrl : sSrcUrl   = "http://localhost:8080/trigger_url"
       Dim oHTTP   : Set oHTTP = WScript.CreateObject("MSXML2.ServerXMLHTTP")
       oHTTP.open "HEAD", sSrcUrl, False
      On Error Resume Next  
       oHTTP.send ""
       If 0 = Err.Number Then
          WScript.Echo oHTTP.Status, sSrcUrl
       Else
          WScript.Echo Err.Description
       End If  
      On Error GoTo 0  
    

    gives you something like:

    200 http://localhost:8080/trigger_url
    

    all you have to read about/learn starting here is “.open”, “.send”, and “.Status”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I copied this script from internet but idon't know how to use it. i
I copied this code from an example . I've read it 100 times. Array.prototype.map
this is copied from http://www.zenspider.com/ZSS/Products/RubyInline/Readme.html , the home of rubyinline, adding/moding as indicated in
I have this sample code for async operations (copied from the interwebs) public class
Note: Move this question to other site if you think its not suite here
Copied a working website from one server to another, now I'm getting this error
I am using following code, copied from a website, for a contact page. But
I found this site/tutorial/demo from another question here on SO. Very nice and clean
I copied and pasted this binary data out of sql server, which I am
When someone installs this plugin, I would like a file to be copied into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.