How to handle Authorization in a Delphi Webbroker Apache module? - delphi

I am working on an Apache module (WebBroker Apache dll) and would like to handle
Authorization: Basic
Unfortunately TWebRequest does not populate AuthPassword and AuthUser.
Any idea where can i find them?

Related

How to create content in apache sling using java program

I am new to apache sling i want to create content(node) using java program and that to be stored in jackrabbit
Every HTTP request targeting Sling (localhost:8080/path/to/my/resource) providing basic authentication will do just fine. In that sense Sling is completely client agnostic and you are free to choose language and library (i.e. Apache Commons) of your choice.

Extract text from MS Word (.doc) file in Ruby on Rails web app using Apache POI

I have gone through APACHE POI project and found it to be useful for extracting text contents from MS word files. Specifically, there is a feature called Text Extraction in POI which does the job effectively. I have also heard about Apache Tika which uses Apache POI internally.
Now, we have a requirement in our Rails web-app to extract the text content from a word (.doc) file. What might be the possibilities that we could integrate Apache POI / Apache Tika in my web-app to serve my purpose?
If anyone has relevant experience with it, I would love to hear about it along with the code snippets.
Your best bet, since you're not running on a JVM, is to use the Apache Tika JAXRS server, available from the Apache Tika download page. This provides RESTful interfaces to have Tika extract text (and metadata) from your files.
Because it's a standalone server, you'll only need to launch the JVM once, and it'll then be there and available for each request you send, speeding things up. To get plain text out, send your document to http://localhost:9998/tika with a HTTP request header of Accept: text/plain and you'll get back the plain text.
You can find more about the available RESTful endpoints of the server on the Tika Wiki, or just by starting the server (java -jar tika-server-1.X.jar) and going to http://localhost:9998/ in your web browser

WebSocket client implementations for Delphi

Are there free WebSocket client implementations for Delphi? I found only this one:
WebSockets Delphi Components
but it is not free.
Here is my open source library:
https://github.com/andremussche/DelphiWebsockets
I've added support for WebSockets to xxm. Not all handlers support the required IXxmRawSocket interface, but the Apache httpd module (xxmAHttpd) and the SCGI handler do, and I still get the best results with the standalone 'raw' handler xxmHttp. See more here.

How to make a simple proxy server?

I wanted to create a simple proxy to my localhost(xampp). I've looked into IdHTTPProxyServer but there is no available example of how to use it.
my intention is to monitor the Post/Get request of my application at runtime just like a debugger.
my application will Post/Get through localhost:8080 and then my proxy will be served as a bridge to localhost:80
any suggestion or example?
I am using D2009, D2010 must support Unicode.
Thank you in advance.
I know it's not Indy, but Synapse (I use it with Lazarus) has a Proxy Server Example included which should work on Delphi too. It worked well for me on FPC. The Demo is included in the Sources you get here:
http://www.ararat.cz/synapse/doku.php/download
You may use Overbyte ICS TCP/IP library, on the "user made" page you have a lot of proxy samples, one is tgphttpproxy.

Dwscript web server

I want to use dwscript for web programming ( generating dynamic content). I was wondering if there is any module for apache web server? Or how can I run my own web server based on dwscript?
I'm not (yet?) familiar with DWScript, but I've created an Apache module that runs a Delphi-compiled module that serves a web-site over an abstract interface, so it can plug into IIS or InternetExplorer also. There are also versions that auto-recompile when it detects changes to the source-code, so you can develop and test by hitting refresh in the browser window:
http://xxm.sourceforge.net/

Resources