php-docraptor
php-docraptor copied to clipboard
Potential issues posting large documents
I received the following in an email:
As far as the PHP wrapper for DocRaptor is concerned, I have few queries, I am working on an academic project, I'd like to know when the content is encoded in the url, is there any limitation as to how much data can be proceeded in one request?
This came up because when I manually use try-it-out feature on docrapter or locally installed princexml, it works fine but via script it doesnt. However when I use a relatively smaller document-content, script works fine.
URL Encoded data has a much smaller limit than form encoded. URL varies by web server but is generally 4-15k. Form data can basically be whatever you can get across the wire before your request times out, so many millions of characters.
The try-it-out feature uses form-encoded and prince is reading straight from the file system, so that's why they would see this issue.