473,749 Members | 2,402 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

fetching url through api while rewrite rule in effect

1 New Member
i am facing a typical issue with apache where i have a filter context(written in c++) which pulls information from apache server. in this process when i am trying to fetch an url where rewrite rule of apache is in picture the fethced value is not correct.

say the rule i am using in rewrite.conf is

RewriteRule ^/ows/printenv$ http://10.152.70.206:9 999/cgi-bin/printenv.pl?map =public.map [L,P,QSA]

what is seen is if i access ^/ows/printenv apache is sending map=public.map as query string but if i acess /ows/printenv ?xyz=abc it only sends xyz=abc as query string (eliminating the original map=public.map )

but if my context is not in picture and apache is used alone the query string for second request is correctly map=public.map &xyz=abc


please let me know what might be wrong in the context i have written as for every other case it behaves alright
Jun 8 '07 #1
1 3072
Motoma
3,237 Recognized Expert Specialist
i am facing a typical issue with apache where i have a filter context(written in c++) which pulls information from apache server. in this process when i am trying to fetch an url where rewrite rule of apache is in picture the fethced value is not correct.

say the rule i am using in rewrite.conf is

RewriteRule ^/ows/printenv$ http://10.152.70.206:9999/cgi-bin/pr...map=public.map [L,P,QSA]

what is seen is if i access ^/ows/printenv apache is sending map=public.map as query string but if i acess /ows/printenv ?xyz=abc it only sends xyz=abc as query string (eliminating the original map=public.map )

but if my context is not in picture and apache is used alone the query string for second request is correctly map=public.map &xyz=abc


please let me know what might be wrong in the context i have written as for every other case it behaves alright
Try this:
RewriteRule ^/ows/printenv$ http://10.152.70.206:9999/cgi-bin/pr...map=public.map [L,P,QSA]
RewriteRule ^/ows/printenv&([^.]+)$ http://10.152.70.206:9 999/cgi-bin/printenv.pl?map =public.map&$1 [L,P,QSA]
Jun 12 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3989
by: jbj | last post by:
I am trying to make a javascript function that can rewrite javascript rules dynamically (no, not the style tag of an individual element, but the actual rule in the <head> portion of the document). I have this code working in Mozilla (so I imagine Netscape browsers) but it gives me an error with IE. A few questions about it: First, here is my current code: <code> function expand(show)
145
6321
by: Sidney Cadot | last post by:
Hi all, In a discussion with Tak-Shing Chan the question came up whether the as-if rule can cover I/O functions. Basically, he maintains it can, and I think it doesn't. Consider two programs: /*** a.c ***/
5
3609
by: Lupus | last post by:
Hello everybody In apache I used a feature called a "Rewrite rule" inside a .htaccess file to process the URL : i.e. http://www/mypage.html =http://www/page.php?page=mypage Now I'd like to do a similar action on a IIS server with ASP (not ..net)... Can anyone tell me how you can do this ?
2
2074
by: sri_san | last post by:
Hello group, After going through a nice article at MSDN(http://msdn2.microsoft.com/en-us/library/ms972974.aspx), I was able to make the URL rewrite working except for coming up with a generic rule using regular expressions. Any URL with the format http://servername/dir/folder30/default.aspx has to be converted to http://servername/default.aspx?id=30
5
1054
by: Johnny Blonde | last post by:
Hello Group! I really tried hard for two hours to rewrite the following expression (python 2.4): -------------------------- teilnehmer = for r in Reisen.select(AND(Reisen.q.RESVON <= datum, Reisen.q.RESBIS for g in r.BUCHUNGEN: for t in g.aktiveTeilnehmer: teilnehmer.append(t)
2
1586
by: fredBH | last post by:
Hi everyone! I need some help to configure my rewrite rule for these url : http://www.test.com/start forward to http://www.test.com/action/start.php http://www.test.com/user/delete/1 forward to http://www.test.com/action/user.php?action=delete&id=1 http://www.test.com/acao/community/post/3 forward to http://www.test.com/action/community.php?action=post&id=3
4
1555
by: adamjblakey | last post by:
What would be the correct MOD Rewrite rule for this: http://www.website.co.uk/building-an...ices/cheshire/ I thought it would be: Code: RewriteRule ^building-and-construction/(+)/(+)/$ results.php?item=$1&other_item=$2
1
3497
by: mazdotnet | last post by:
Hi all, I've installed the new Microsoft URL Rewrite Module for IIS 7.0 http://www.iis.net/downloads/default.aspx?tabid=34&i=1691&g=6 on both my laptop (Vista Home Premium) and my desktop (Vista Ultimate). I'm running my sites on IIS instead of the ASP.NET server. If I call my site using http://localhost in the browser, it works fine. However, as soon as I run it from within Visual Studio 2008 in
0
1934
by: andrewteg | last post by:
I have an application that is installed as http://domain.com/folder/ and serves pages as http://domain.com/folder/index.ext/parent/child/ and I'm trying to remove index.ext from the URL so that http://domain.com/folder/parent/child/ would work as well. Does anyone have an idea on what rewrite rule I would need? I tried: RewriteRule ^(.*)$ index.cfm%{REQUEST_URI} but that sends it to /folder/index.ext/folder/parent/child/ instead... ...
0
8996
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9388
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8256
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6800
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.