skip to Main Content

Apache and Content-Range

I am trying to implement support for Content-Range in PHP-generated files. When a browser sends Range request my script gives correct bytes and it works well. But while testing how Content-Range looks when downloading a PDF from Apache server I…

VIEW QUESTION

Prevent ClosableHttpClient from sending cookies – Shopify

I am attempting to write a private app for the Shopify API in Java. I'm using the org.apache.http library to write my requests. Below is my current request: CloseableHttpClient httpClient = HttpClientBuilder.create().setDefaultRequestConfig(RequestConfig.custom().setCookieSpec(CookieSpecs.STANDARD).build()).build(); HttpPut putRequest = new HttpPut(request); StringEntity params; try…

VIEW QUESTION

PHP image download with header – Photoshop

I've successfully implemented some PHP to download an image: PHP: <?php $image = "path/to/image.jpg" header('Content-disposition: attachment; filename=image.jpg'); header('Content-type: image/jpeg'); readfile($image); ?> Here is an example image that I've saved to my server: http://www.thenally.com/work/php-tests/header/files/herzog.jpg If I view the image in the…

VIEW QUESTION

PHP image download with header – Photoshop

I've successfully implemented some PHP to download an image: PHP: <?php $image = "path/to/image.jpg" header('Content-disposition: attachment; filename=image.jpg'); header('Content-type: image/jpeg'); readfile($image); ?> Here is an example image that I've saved to my server: http://www.thenally.com/work/php-tests/header/files/herzog.jpg If I view the image in the…

VIEW QUESTION
Back To Top
Search