![]() |
| Sponsored Links (We share ad revenue): |
|
|
Re: pass username/password from a script into http basic authentication | |
|
Skilled Talker
Posts: 97
Name: Chris Duerr
|
Quote:
Put the PDF files in an unaccessible directory, then just spit the file out: Code:
#!/usr/bin/perl
print "Content-type: application/pdf\n\n";
open(FILE, "somefile.pdf") or die ("Cannot open file");
@data = <FILE>;
close(FILE);
foreach $line (@data) { print $line; }
__________________
Chris Duerr AddonChat Java Chat Software http://www.addonchat.com/ - Affiliate Program |
|
|
|
|
|
|
Re: pass username/password from a script into http basic authentication |
|
Fetchez la vache!
Latest Blog Post:
Pretty pretty please…. Posts: 1,689
Name: Thierry
Location: In the void
|
Whoohoo, hey, look at that !
Comprehensible Perl code ! A true wonder of the world... Tried to add TP, but could not. I have to "spread some more" before, but I needed to say that ![]()
__________________
Listen to the ducky: "This is awesome!!!" |
|
|
|
|
|
Re: pass username/password from a script into http basic authentication |
|
Skilled Talker
Posts: 97
Name: Chris Duerr
|
lol I try.
__________________
Chris Duerr AddonChat Java Chat Software http://www.addonchat.com/ - Affiliate Program |
|
|
|
|
|
Re: pass username/password from a script into http basic authentication |
|
Junior Talker
Posts: 3
Name: Anon Hanon
|
Is there anyway to do something similar in PHP?
|
|
|
|
|
|
Re: pass username/password from a script into http basic authentication |
|
Skilled Talker
Posts: 97
Name: Chris Duerr
|
PHP Code:
__________________
Chris Duerr AddonChat Java Chat Software http://www.addonchat.com/ - Affiliate Program |
|
|
|
| Sponsored Links (We share ad revenue): |
| Thread Tools | |
|
|
| Webmaster Resources Marketplace: |
| Software Development Company | Webhosting.UK.com |
| Web Templates | Text Link Brokers | Stock Photos |