krewenki / php-docraptor

PHP consumer for the DocRaptor.com API
ISC License
26 stars 9 forks source link

Potential issues posting large documents #3

Open krewenki opened 11 years ago

krewenki commented 11 years ago

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.

janxious commented 10 years ago

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.