URLREWRITE file with "?" in it | Search |
NowSMS Support Forums ⬆ Now.WAP Proxy Support ⬆ |
◄ ► |
Author | Message | ||||
Dean Carico New member Username: Dcarico Post Number: 2 Registered: 06-2009 |
I have Now.WAP set up with the following in the URLREWRITE file http://homepage=http://www.waphomepage.com/?id=kiickmobileuser I can connect through the phone to the waphomepage.com domain but it does not pick up the user. The log file shows it only trying to "GET" file only shows it trying to get "http://waphomepage.com?" and that is it. It ignores everything at and after the "?" Any fixes for this? | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 982 Registered: 08-2008 |
Hi Dean, By default the log file truncates query parameters (for a lot of web sites, they can get rather long). You can disable this behaviour by editing WAPGW.INI, and under the [WAPGW] header adding: LogTruncateUrlQuery=No Or you can enable the WAPDEBUG.LOG and see the raw transaction details. To enable the debug log, edit WAPGW.INI, and under the [WAPGW] header add Debug=Yes. I don't believe there is any restriction against "?" in a URLRewrite. -- Des NowSMS Support | ||||
Dean Carico New member Username: Dcarico Post Number: 4 Registered: 06-2009 |
I am able to get to the waphomepage using the URLREWRITE file. On the phone it comes up "sorry no user found with that name..." It can't see the "kiickmobileuser" at the end of the URL. This is what the debug file had (13) - 12:28:57:828 Radius: IP Address 70.194.93.126 not found (13) - 12:28:57:843 GET /?id=kiickmobileuser/ HTTP/1.1 User-Agent: MOT-GATW_/00.62 UP.Browser/6.2.3.4.c.1.114 (GUI) MMP/2.0 Accept-Charset: utf-8 Accept-Language: en, es-es, pt-br, fr-ca, zh-cn, *;q=0.0 X-Wap-Profile: "http://uaprof.vtext.com/mot/v3/v3v1.xml" Accept-Encoding: deflate,gzip Accept: application/vnd.phonecom.mmc-xml, application/vnd.wap.wmlc;type=4365, application/vnd.wap.wmlscriptc, application/vnd.wap.xhtml+xml, application/xhtml+xml;profile="http://www.wapforum.org/xhtml", image/bmp, image/gif, image/jpeg, image/png, image/vnd.wap.wbmp, image/x-up-wpng, multipart/mixed, multipart/related, text/html, text/plain, text/vnd.wap.wml;type=4365, text/x-vcard, text/x-vcalendar, text/uri-list, application/image-slideshow, image/ems.userdefined.picture, image/ems.userdefined.animation, image/ems.predefined.animation, audio/imelody, audio/x-midi, audio/mid, audio/midi, audio/mp3, audio/aac, audio/amr, application/audio-playlist, video/mp4, video/3gpp, video/3gpp2, application/octet-stream, application/vnd.oma.dd+xml, application/octet-stream Connection: Keep-Alive X-Forwarded-For: 70.194.93.126 X-WAP-Client-IP: 70.194.93.126 Host: www.waphomepage.com (13) - 12:29:01:953 HttpResponseProxy: Before receive (13) - 12:29:01:953 HttpResponseProxy: Received 1391 bytes (13) - 12:29:01:953 HttpProxy: Content will be compressed (13) - 12:29:02:031 HTTP/1.1 200 OK Date: Fri, 03 Jul 2009 16:25:19 GMT Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 X-Powered-By: PHP/5.2.9 Keep-Alive: timeout=5, max=100 Content-Type: text/html Content-encoding: gzip Transfer-encoding: chunked (13) - 12:29:02:031 HttpResponseProxy: Chunk response Ok (13) - 12:29:02:031 SendFinalChunk: Sending 541 byte chunk (13) - 12:29:02:031 sending 320 byte header (13) - 12:29:02:031 SendFinalChunk: Including final 0 byte chunk (13) - 12:29:02:031 HTTP/1.1 200 OK Date: Fri, 03 Jul 2009 16:25:19 GMT Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 X-Powered-By: PHP/5.2.9 Keep-Alive: timeout=5, max=100 Content-Type: text/html Content-encoding: gzip Transfer-encoding: chunked 21D ‹ (13) - 12:29:02:031 ThreadProcessHttpConnection: Adding socket to HTTP keep-alive list... | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 990 Registered: 08-2008 |
Show me the URLREWRITE.TXT file. It does a direct text replacement against the input. My guess is that the part before the = needs a / appended to it. | ||||
Dean Carico New member Username: Dcarico Post Number: 5 Registered: 06-2009 |
Here is the URLREWRITE file attachec
| ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 991 Registered: 08-2008 |
Change it to this: http://homepage/=http://www.waphomepage.com/?id=kiickmobileuser Actually, I'd go ahead and have both lines, but in this order: http://homepage/=http://www.waphomepage.com/?id=kiickmobileuser http://homepage=http://www.waphomepage.com/?id=kiickmobileuser The first line would be evaluated first, then the second. The URL Rewrite looks for an exact text match ... and even though the client is configured with a home page of http://homepage ... normally when this gets sent out to a proxy it would get normalised to http://homepage/ -- Des NowSMS Support | ||||
Dean Carico New member Username: Dcarico Post Number: 6 Registered: 06-2009 |
That was it! It works now! Now I will continue testing. Thank you. |