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 8846369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:57:58+00:00 2026-06-14T11:57:58+00:00

So i am sending a httpwebrequest to a particular website and i need an

  • 0

So i am sending a httpwebrequest to a particular website and i need an image from that website but this image loads 3-5 seconds after the the request is complete so the source does not contain the image, i want to make some kind of a delay so i can get the response a few seconds later, this is my code:

HttpWebRequest req1 = (HttpWebRequest)WebRequest.Create("url");            
            using(var httpResponse = req1.GetResponse())
            {
                using (var ResponseStream = httpResponse.GetResponseStream())
                {
                    if (ResponseStream != null)
                    {
                        using (StreamReader sr = new StreamReader(ResponseStream))
                        {

                            string response = sr.ReadToEnd();                            
                            var doc = new HtmlAgilityPack.HtmlDocument();
                            doc.Load(ResponseStream);

                            foreach(HtmlNode node in doc.DocumentNode.SelectNodes("src"))//it's not working because the source does not contain the image
                            {
                                pictureBox1.ImageLocation = node.ToString();
                            }
                        }
                    }
                }
            }
  • 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-06-14T11:57:59+00:00Added an answer on June 14, 2026 at 11:57 am

    What is likely happening is that the page is loaded then a Javascript event fires and makes a separate call to the server to load the image. Delaying your HTTP request will not help you achieve what you desire.

    I would suggest

    1. opening the page in Google Chrome, and pressing Ctr-Shift-J to bring up the Developer Tools.
    2. Click on the network tab.
    3. Click on “Images” at the botton of the Developer’s tool.
    4. Click on the network tab.
    5. Navigate to the page with your image. You’ll see a request for the image in Developer Tools.
    6. Try and figure out where that request is being created within the Javascript.

    If you provide a link to the page you’re talking about, myself or others might be able to clarify further.

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

Sidebar

Related Questions

I am sending a POST request using HTTPWebRequest from the client to the Cassini
Sending XML from C# Server and receiving it it in Android Java client This
sending text to label and number to int from tabelview to viewcontroller but it
sending mail along with embedded image using asp.net I have already used following but
I sending ajax request from a jQuery file like below, which expects response in
I am sending and receiving web requests with HttpWebRequest. After a response it is
I need to send an image from the Windows Phone 7 to some e-mail
I am sending a HTTPWebRequest from C# code and in response I am getting
I'm sending some SMS using HttpWebRequest . But some times the messages appear to
I'm sending an HTTP PUT request from a WinForms application and I'd like to

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.