i have created handler process .html pages in asp.net c# web application. use url rewriting concepts. handler works fine when html requrest come server/website. coding details follows: web.config handler code: <add verb="*" path="*.html," validate="false" type="myproject.contenthandler,myproject" /> contenthandler.cs code: public void processrequest(httpcontext context) { string strmappage = string.empty; if (context.request.url.tostring().contains("category")) { strmappage = "/links.aspx?id=" + producid; } else { strmappage = context.request.url.tostring(); } context.server.transfer(strmappage); } this method works fine .html request page http://localhost:9111/user-category-1.html when try open page '/js/tinymce/imagemanager/index.html' throws error "error execut...
i trying learn x86_64 assembly , trying standard input output today , stumbled upon post learning assembly - echo program name how same reading input stdin (using syscall instruction)? if know input integer , want read register? edit: @daniel kozar's answer below helped me understand how stdin , stdout stuff work syscall instruction on linux. attempted write small program, reads number console input , prints ascii character corresponding number. if type 65 input, should output. , new line character. if @ all, helps 1 else :-) section .text global _start _start: mov rdi, 0x0 ; file descriptor = stdin = 0 lea rsi, [rsp+8] ; buffer = address store bytes read mov rdx, 0x2 ; number of bytes read mov rax, 0x0 ; syscall number reading stdin syscall ; make syscall xor rax, rax ; clear off rax mov rbx, [rsp+8] ; read first byte read rsp+8 stdin call rbp sub rbx, 0x30 ; since read character, obtained ascii va...
Comments
Post a Comment