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

  • Home
  • SEARCH
  • 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 8781899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:25:41+00:00 2026-06-13T20:25:41+00:00

If website pops out a 503 then webclient will just throw an exception. For

  • 0

If website pops out a 503 then webclient will just throw an exception.

For example, go to http://www.google.com/sorry/?continue=http%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Dkucing

If we open it in internet explorer it’ll open a page. If we use livehttpheader it returns a 503 rather than 200. However, it still show something.

Now try curl the same page.

http://www.google.com/sorry/?continue=http%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Dkucing

The curl will just stop failing. So how to make curl treat 503 like 200?

Samples are when we try to search something at google. Google sometimes require captcha. Well, just pop that out so I can fill the captcha. But webclient simply throw an exception without assigning the content to a file. That’s not good.

How to ensure that webclient do not throw things out.

Same goes for curl

  • 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-13T20:25:42+00:00Added an answer on June 13, 2026 at 8:25 pm

    For WebClient you need to process the WebException.Response. E.g. this LINQPad query dumps the HTML provided by my web server’s “Not Found” error web page:

    Dim wc = New System.Net.WebClient
    Try 
      Dim rd = wc.DownloadData(New Uri("http://localhost/test"))
      rd.Dump
    Catch Ex As System.Net.WebException
     Dim rs = Ex.Response
     Call (New StreamReader(rs.GetResponseStream)).ReadToEnd.Dump
    End Try
    

    Now actually using WebClient.

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

Sidebar

Related Questions

My website at http://derek.genevievehoward.com/ will not display in Firefox, even though the HTML and
If you click on: http://store.apple.com/us/product/MAC_OS_X_SNGL And then click on Find out which version you're
At present my joomla urls are showing up like http://www.website.com/index.php/gallery instead of http://www.website.com/gallery.php So
Website: http://videojs.com/ How can I use the YouTube Skin on the frontpage? I'd really
The website in question is http://oxfordbeach.com/bynight/ If you resize the browser, the nav bar
Okay, I'm creating a challenge system on a website. I will list out in
Website: http://clandestinoangusto.it/ Hi, can anybody explain why WebKit browsers are not able to highlight
My website images look blurry for users with retina displays. (For example, on the
A website I've been working on will not match data using a PHP (preg_match)
I'm implementing a Google Map on a website. One requirement is to display a

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.