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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:29:05+00:00 2026-05-13T15:29:05+00:00

I am trying to request a webpage from an iis web server that I

  • 0

I am trying to request a webpage from an iis web server that I control utilising query strings.

E.g., I have a webbrowser control in my winforms app and request a page similar to “www.site.com/getpage.ashx?field=afsfgwesar+sere”

When i try to run this it fails because on the server side, getpage.ashx can’t locate the right field.

After much hair pulling I have figured out that the string has actually changed from what was sent to the browser and what was received – i.e. – the plus symbol is missing when the server starts working with it.

It begins as “afsfgwesar+sere” and ends as “afsfgwesarsere”. So somewhere along the line the string is being reformatted?

This is how I am getting the string on the server side –

string field = (string)context.Request.QueryString["field"];

It is at this point I have stepped in and seen the missing plus symbol.

Does anyone know why I am losing the plus symbol and how I can get it back?

  • 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-13T15:29:06+00:00Added an answer on May 13, 2026 at 3:29 pm

    The plus sign is a reserved character in querystrings. It is often interpreted as a space character. Just have a look at a search engine and you’ll notice this.

    You can prevent this by encoding the afsfgwesar+sere text before adding it to the querystring. Use HttpUtility.UrlEncode to do so. Use HttpUtility.UrlDecode to read it back.

    For more info, read:
    http://msdn.microsoft.com/en-us/library/4fkewx0t.aspx

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

Sidebar

Related Questions

Trying to honor a feature request from our customers, I'd like that my application,
I currently have a program that basically reads html from a webpage. After sending
I'm trying to request a webpage using WebRequest.GetResponse(); and convert that response to a
I am trying to make a proxy server that gets a page from www.xxx.com
I am trying to get HTML code from a webpage that is not in
I'm trying to pull some data from a webpage. I have it partially working,
Trying to get parameters from a PUT request using HttpServlet#doPut: public void doPut(HttpServletRequest request,
Trying to find a way to send a POST HTTPS request from Python to
I am trying to implement a request to an unreliable server. The request is
I'm trying to redirect/forward a Pylons request. The problem with using redirect_to is that

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.