ben Talebi ServerVariables ait www.domain.com
Güncel alan adını Klasik ASP'de nasıl edinebilirim? Sayfa <a href="http://www.domain.com/page.asp" rel="noreferrer">http://www.domain.com/page.asp</a> ise öylesine
14
A
cevap
27
Request.ServerVariables("SERVER_NAME")'
, biri tam olmak benim işlevleri:
function PageUrl
dim sPort
sPort = Request.ServerVariables("SERVER_PORT")
if sPort = "80" then
sPort = ""
else
sPort = ":" & sPort
end if
PageUrl = "http://" & Request.ServerVariables("SERVER_NAME") & sPort & _
Request.ServerVariables("URL") & "?" & _
Request.ServerVariables("QUERY_STRING")
end function
1
Bir ihtiyaç geçerli etki alanını almak istiyor (server_name?)
0
Bunu f sonundan önce koyun. Hiçbir sorgu dizesi öğe olduğunda, sonunda rastgele ?
olarak, ?
kaldırmak unction istediğini olmayabilir:
If right(PageUrl,1)="?" then PageUrl = left(PageUrl,len(PageUrl)-1)
0
<%
for each x in Request.ServerVariables
response.write(x&"="&Request.ServerVariables(x)&"<br>")
next
%>
Bu vasiyetin her Request.ServerVariables ile bu gibi sonuçlar verir
REMOTE_ADDR = 40.20.170.160
REMOTE_HOST = 40.20.170.160
REMOTE_USER =
REQUEST_METHOD = GET
SCRIPT_NAME = /xyz/get.asp
SERVER_NAME = www.xyz.com
SERVER_PORT = 80
+1
Lütfen biraz açıklama ekleyin. –
+0
Açıklama eklendi :) – MRRaja
İlgili konular
- 1. nasıl <a href="http://refinerycms.com/" rel="noreferrer">refinery cms</a> bir <a href="http://railscasts.com/episodes/333-extending-refinery-cms?view=asciicast" rel="noreferrer">custom engine</a> yaratıyorum
- 2. nasıl <a href="https://www.vaultproject.io/" rel="nofollow">vault</a> için denemeye istedik
- 3. Kullanıcı adını Python'da nasıl edinebilirim?
- 4. Program adını Racket'te nasıl edinebilirim?
- 5. <a href="http://deepliquid.com/content/Jcrop_Manual.html" rel="noreferrer">Jcrop</a> içinde
- 6. DVWA Ben <a href="http://www.dvwa.co.uk/" rel="nofollow noreferrer">DVWA</a> yapılandırmış
- 7. kabartılmış/motorize erişim <a href="http://twill.idyll.org/" rel="nofollow noreferrer">Twill</a> ve <a href="http://wwwsearch.sourceforge.net/mechanize/" rel="nofollow noreferrer">Mechanize</a> ilgili sorular
- 8. - değil <a href>
- 9. <a href.. in PHP
- 10. Jquery'yi kullanarak güncel tarihi nasıl edinebilirim?
- 11. Haftanın güncel gününü vimscript'de nasıl edinebilirim?
- 12. nasıl gibi <a href="http://asp.net/mvc" rel="nofollow noreferrer">ASP.NET MVC</a> Kanununun <a href="http://www.codeplex.com/aspnet" rel="nofollow noreferrer">preview 4</a> kullanarak MVC
- 13. Güncel <tr>
- 14. zaman bir <a href="http://en.wikipedia.org/wiki/PostgreSQL" rel="noreferrer">PostgreSQL</a> veritabanında tip <a href="http://www.postgresql.org/docs/current/static/datatype-datetime.html" rel="noreferrer">Timestamp</a> olduğu durumlarda java.sql.Timestamp
- 15. Python hata, <a href="http://docs.python.org/library/string.html" rel="nofollow">http://docs.python.org/library/string.html</a> den
- 16. Galleria eklentisi: Bağlantılar nasıl eklenir? Bu <a href="http://galleria.aino.se/" rel="noreferrer">Galleria plugin</a> bahsediyor
- 17. python3 varsayılan kodlama ben <a href="http://inginious.readthedocs.io" rel="noreferrer">inginious</a> denilen bir çerçeve kullanıyorum ve onun şablonu oluşturmak için <a href="http://webpy.org/" rel="noreferrer">web.py</a> kullanıyor
- 18. nasıl <a href="http://code.shutterstock.com/rickshaw/" rel="nofollow">http://code.shutterstock.com/rickshaw/</a></p> <p>Javascript grafikleri kullanmak istiyorum
- 19. Yukarıda Dockerfile ile <a href="https://katacoda.com/courses/docker/3" rel="noreferrer">Dockerizing nodejs</a> uygulamalar için <a href="https://katacoda.com" rel="noreferrer">katacoda.com</a> egzersizi tamamlamaya çalışıyorum
- 20. MQTT neden "hafif" mesajlaşma protokolü olarak adlandırılır? <a href="https://en.wikipedia.org/wiki/MQTT" rel="noreferrer">Wikipedia</a> ve <a href="http://mqtt.org/" rel="noreferrer">Mqtt.org</a> uyarınca
- 21. $ (...). Datetimepicker ben <a href="https://webpack.github.io/" rel="noreferrer">webpack</a> kullanıp <a href="http://eonasdan.github.io/bootstrap-datetimepicker/" rel="noreferrer">bootstrap-datetimepicker</a> kullanmak istediğiniz bir işlev
- 22. sayfa benim raylar ise
- 23. atamasını kaldır göz düğme <a href="https://github.com/flowjs/flow.js" rel="noreferrer">flow.js</a> bileşeni ile
- 24. Nasıl xslt içinde <a href = "mailto: tag" yazabilirim
- 25. ekleme doğrulamaları AASM devleti <a href="https://github.com/pluginaweek/state_machine" rel="noreferrer">state_machine</a> yılında
- 26. Python'un örnek <a href="http://docs.python.org/library/functions.html#iter" rel="nofollow">python docs</a> de
- 27. Basit Enjektör ben aşağıdakileri yapabilirsiniz <a href="https://simpleinjector.org" rel="noreferrer">Simple Injector</a> yılında yapıcı
- 28. TextMate gibi Aç/Kapat etiketinde sarma seçimi? <a href="http://macromates.com/" rel="noreferrer">TextMate</a> yılında
- 29. Ben <a href="http://en.wikipedia.org/wiki/Transact-SQL" rel="nofollow noreferrer">T-SQL</a> için yeni
- 30. Bunda <a href="http://json.codeplex.com/" rel="nofollow">Json.NET</a> İlk göz kullanıyorum Json.NET
<% = Request.ServerVariables ("SERVER_NAME")%> – jessegavin