Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Problem with url's that don't have the "=" sign

Reply
Thread Tools

Problem with url's that don't have the "=" sign

 
 
msnews.microsoft.com
Guest
Posts: n/a
 
      01-12-2004
Hi,

I am having a problem that the gateway I am working with removes the "="
sign from values in the postfield that are empty.
Example:
page.asp?aa=&ff=&xx=12
become:
page.asp?aa&ff&xx=12.
When I query the string and request the value of xx through IIS, it returns
nothing.
Can anyone help me finding where Microsoft defined the URL format that the
IIS (4.0) accepts?
I have already searched the RFC's.


 
Reply With Quote
 
 
 
 
Lasse Edsvik
Guest
Posts: n/a
 
      01-12-2004
why not:

a=request.querystring("a")
b=request.querystring("b")
if a<>"" then
qstr="a="&a
end if
if b<>"" then
if qstr<>"" then qstr=qstr&"&"
qstr=qstr&"b="&b
end if

response.redirect("somepage.asp?"&qstr)

/Lasse


"msnews.microsoft.com" <(E-Mail Removed)> wrote in message
news:%23EY1$(E-Mail Removed)...
> Hi,
>
> I am having a problem that the gateway I am working with removes the "="
> sign from values in the postfield that are empty.
> Example:
> page.asp?aa=&ff=&xx=12
> become:
> page.asp?aa&ff&xx=12.
> When I query the string and request the value of xx through IIS, it

returns
> nothing.
> Can anyone help me finding where Microsoft defined the URL format that the
> IIS (4.0) accepts?
> I have already searched the RFC's.
>
>



 
Reply With Quote
 
 
 
 
MSFT
Guest
Posts: n/a
 
      01-12-2004
Hello,

Thank you the post. As my understanding, you want to remove "=" in the
querystring if a item has null value. However, the "=" is necessary for an
item in the query string. If you don't want it, you compose a custom string
like Lasse suggest.

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
Reply With Quote
 
MSFT
Guest
Posts: n/a
 
      01-13-2004
Hello,

After review your post again, I realize I may misunderstand the problem.
The query string has been changed by your gateway, and IIS can't handle it.
Is this correct?

Actually, the query string is not processed by IIS. This text is processed
by ISAPI filters, such as ASP or ASP.NET. In this problem, it is processed
by ASP.DLL.

Regarding the problem, if we can't change the setting of gateway, there are
two work around:

1. Before send request to IIS, we need to remove the unnecessary "=". For
example, from

page.asp?aa=&ff=&xx=12

to

page.asp?xx=12

2. Write IIS ISAPI filters which provide the capability of pre-processing
and post-processing of all data sent between the client and the server. For
more inforamtion, you may refer to following articles:

ISAPI Server Extensions and Filters
http://msdn.microsoft.com/library/de...prods/vs6/visu
alc/vccore/_core_isapi_server_extensions_and_filters.htm

Hope this help,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)




 
Reply With Quote
 
msnews.microsoft.com
Guest
Posts: n/a
 
      01-14-2004
Thanks. That is the answer I was looking for. Will try that.
"MSFT" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> After review your post again, I realize I may misunderstand the problem.
> The query string has been changed by your gateway, and IIS can't handle

it.
> Is this correct?
>
> Actually, the query string is not processed by IIS. This text is

processed
> by ISAPI filters, such as ASP or ASP.NET. In this problem, it is processed
> by ASP.DLL.
>
> Regarding the problem, if we can't change the setting of gateway, there

are
> two work around:
>
> 1. Before send request to IIS, we need to remove the unnecessary "=". For
> example, from
>
> page.asp?aa=&ff=&xx=12
>
> to
>
> page.asp?xx=12
>
> 2. Write IIS ISAPI filters which provide the capability of pre-processing
> and post-processing of all data sent between the client and the server.

For
> more inforamtion, you may refer to following articles:
>
> ISAPI Server Extensions and Filters
>

http://msdn.microsoft.com/library/de...prods/vs6/visu
> alc/vccore/_core_isapi_server_extensions_and_filters.htm
>
> Hope this help,
>
> Luke
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
>
>
>



 
Reply With Quote
 
msnews.microsoft.com
Guest
Posts: n/a
 
      01-14-2004
Thanks. That is the answer I was looking for. Will try that.
"MSFT" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> After review your post again, I realize I may misunderstand the problem.
> The query string has been changed by your gateway, and IIS can't handle

it.
> Is this correct?
>
> Actually, the query string is not processed by IIS. This text is

processed
> by ISAPI filters, such as ASP or ASP.NET. In this problem, it is processed
> by ASP.DLL.
>
> Regarding the problem, if we can't change the setting of gateway, there

are
> two work around:
>
> 1. Before send request to IIS, we need to remove the unnecessary "=". For
> example, from
>
> page.asp?aa=&ff=&xx=12
>
> to
>
> page.asp?xx=12
>
> 2. Write IIS ISAPI filters which provide the capability of pre-processing
> and post-processing of all data sent between the client and the server.

For
> more inforamtion, you may refer to following articles:
>
> ISAPI Server Extensions and Filters
>

http://msdn.microsoft.com/library/de...prods/vs6/visu
> alc/vccore/_core_isapi_server_extensions_and_filters.htm
>
> Hope this help,
>
> Luke
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in running a basic code in python 3.3.0 that includes HTML file Satabdi Mukherjee Python 1 04-04-2013 07:48 PM
$ sign to gb pound sign PWB Computer Support 6 02-19-2007 03:06 AM
Automatic sign-up and sign-in across different domains without cookies? Jimmy ASP .Net 1 11-21-2006 04:41 PM
Automatic sign-up and sign-in between different domains without cookies? Jimmy Javascript 3 11-20-2006 01:28 PM
J sign instead of ? sign Harold Potter esq. Computer Support 5 04-16-2005 02:19 PM



Advertisments