Friday 2 March 2012

How to generate a HTTP 400 error from a client

First blog post in a while! I have hardly had any free time... Will blog about it soon!

Anyway, I have needed to generate a 400 error on a server in order to test something - I tried a few things without success and then I discovered that the easiest way to generate a 400 error from a client is simply to add a percentage symbol (%) to the request.

For example, http://mysite.com/% should generate a 400.

Before I found out I could use the percentage symbol, I was looking for a method involving telnet/direct connections. Oliver Salzburg on Super User came up with the following -


... I don't know if this will help anyone, but, if I had found a post like this earlier today, it would have saved me quite a bit of time, so, I hope someone will find it useful!

38 comments:

  1. the author is an executive of Wensil I Technologies and writing articles for.
    So you send a tweet with a link to your perk, and build an email list.
    Ask your friends and followers to digg, retweet a post for you because that will feature you on the Digg homepage and you will surely have increased number of followers on twitter.


    Also visit my web page - Buy Twitter Followers cheap

    ReplyDelete
  2. Worked like a charm, thanks!

    ReplyDelete
  3. Al-Mu'akh-khir (The Delayer) He Has the Power to Delay any affair that He desires. A Yemeni in Aden, a former British colony was quoted in 2009 saying,“Most of what we have is what the British built when they were here. Later, in the medieval period astrolabes were specifically used as a navigating device to find the location of Kaaba in Mecca.

    Feel free to surf to my webpage - islamic resources group

    ReplyDelete
  4. Wow, Excellent post. This article is really very interesting and effective. I think its must be helpful for us. Thanks for sharing your informative.
    Buy Twitter Followers

    ReplyDelete
  5. While there's still plenty of progress to be made, the fashion industry has taken yet another step forward in terms of diversity. Nordstrom recently made headlines valentino boots thanks to a model the department store featured in its holiday ads: 28-year-old giuseppe shoes amputee Lauren Wasser.After she lost her leg to toxic shock syndrome, a friend valentino shoes took pictures of Lauren as she recovered, which soon inspired her to continue red bottoms shoes pursuing her dream of modeling. And while her scary story made headlines this red bottoms shoes on sale past Summer — Lauren filed lawsuits against Kotex, the manufacturer of the tampons, red bottoms shoes and Ralphs, the supermarket that sold them to her — it's her talent authentic christian louboutin outlet that's stealing the spotlight now. Showing off her leg and prosthetic in leggings jimmy choo outlet and kicks, she's finally back at it and looking oh so fierce.Keep scrolling giuseppe zanotti sneakers to see the model do her thing, both in Nordstrom's ads and beyond, cheap louboutin shoes further proving that indeed, nothing is impossible.
    While the world was buzzing about red sole shoes christian louboutin Steve Harvey crowning the wrong Miss Universe at the pageant on Sunday, we christian louboutin sale were focused on Chloë Grace Moretz's Twitter feed. The 18-year-old actress called out christian louboutin shoes

    ReplyDelete
  6. Questo è simile allo stesso tipo di rischio che le persone con pressione sanguigna alta hanno - e anche che i fumatori hanno. Quel che è peggio è ... è possibile che oltre il contatore rimedi potrebbero aggravare il problema. http://www.disfunzione-erettile.org/problemi-di-erezione-fumo-alcol.html

    ReplyDelete
  7. As per the Federal Reserve, Americans bear $5,800 in charge card obligation from month to month. Making the base regularly scheduled installment on that obligation would take 30 years to pay off, and incorporate an extra $15,000 in intrigue. Cash Advance

    ReplyDelete
  8. [url="http://furnit1996.canariblogs.com/-7300354"]شركة نقل عفش[/url]

    ReplyDelete
  9. The most effective way to take the streets is to first take minds and hearts. The TLP is winning. No amount of investing in the Coach Bags Outlet police, Coach Bags Clearance or Rangers, or MK Outlet FC, or water cannons, or jail cells, or police stations will tackle the potency of Pir Afzal Qadri open calls for insurrection or Khadim Hussain Rizvi open contempt for the Michael Kors Outlet Store Pakistani order built by none other than Nike Air Force 1 Cheap Outlet Quaid e Azam..

    (Privacy Policy)TripleLiftThis New Jordan Shoes 2020 is an ad network. (Privacy Policy)Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.

    Her Bravery, her fight, her fame. Michaels life was very sad, his fame and fortune were his ultimate death. How sad for him, but lets remember Cheap Ray Ban Glasses everyone. You just New Yeezys 2020 might not expect it to come in the summer raunchiest comedy. Amid vomit gags and scrotum jokes, director Nicholas Stoller delivers feminist heroines whose fight to smoke pot in peace is about more than just that. But that sorority was started by those three frustrated freshmen as their answer to frat parties and an actual rule of the Coach Outlet Clearance National Panhellenic Conference that sororities can have alcohol in their houses.

    ReplyDelete
  10. This is a really wonderful post and Thanks for sharing it with us. I will provide you with sexy models who will dance & drink with you and also provide you sexual body-to-body massage with sex. For more details click here: massage at home in Haridwar

    ReplyDelete
  11. https://kaamfix.com/2021/07/13/o-general-ac-service-delhi-for-ac-installation-repair-mobile9873333616-kaamfix-com/

    ReplyDelete
  12. https://kaamfix.com/2021/07/13/sell-used-mobiles-realme-c20-sai-telecom-kaam-fix/

    ReplyDelete
  13. https://kaamfix.com/2021/07/12/how-to-remove-activation-lock-in-delhi-110084sai-telecomkaamfix-com/

    ReplyDelete
  14. https://kaamfix.com/2021/07/12/top-v-guard-roufmb-white-7-l-ro-uf-mb-service-providers-in-delhi-110084sai-telecomkaamfix-com/

    ReplyDelete
  15. https://kaamfix.com/2021/07/10/sell-used-mobiles-realme-c21-sai-telecom-kaam-fix/

    ReplyDelete
  16. 21/07/10/lg-55um7290ptd-55-inch-lcd-tv-repair-service-in-delhicall9873333616%e2%80%b3kaamfix-com/

    ReplyDelete
  17. https://kaamfix.com/2021/07/09/professional-plumbing-services-in-delhi-at-affordable-prices-mobile9873333616-sai-telecom-kaamfix-com/

    ReplyDelete
  18. https://kaamfix.com/2021/07/08/how-do-i-fix-my-cctv-camera-in-delhi/

    ReplyDelete
  19. https://kaamfix.com/2021/07/08/cctv-security-installation-repair-services-in-delhi-110084sai-telecomkaamfix-com/

    ReplyDelete
  20. https://kaamfix.com/2021/07/06/how-to-sell-your-iphone-11-sai-telecom-kaam-fix-2/

    ReplyDelete
  21. https://kaamfix.com/2021/07/05/sell-used-mobiles-infinix-kaamfix-com/

    ReplyDelete
  22. https://kaamfix.com/2021/07/05/sell-used-mobiles-motorola-kaamfix-com/

    ReplyDelete
  23. https://kaamfix.com/2021/07/03/how-to-sell-your-iphone-12-sai-telecom-kaam-fix/

    ReplyDelete
  24. https://kaamfix.com/.../how-to-remove-find-my-iphone.../

    ReplyDelete
  25. This comment has been removed by the author.

    ReplyDelete