|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello,
On my Apache server, I have Proxy (ProxyOn) activated. I would like to open files on the destination server with the command : FILE *f = ap_pfopen(r->pool, r->filename, "r"); (and I have controlled, r->filename = proxy:URL ) But unfortunately it didn't work ! (f = NULL) So how can I do that ? Thks. |
|
#2
|
|||
|
|||
|
>> I would like to open files on the destination server
What is opening a file? >> But unfortunately it didn't work 1) What did you do? 2) What did happen? 3) What you expected to happen? |
|
#3
|
|||
|
|||
|
>> I would like to open files on the destination server
>>What is opening a file? I want to have a file descriptor (File *fd), so I can read the file with fgets, or use mD5 digest function on files. >> But unfortunately it didn't work 1) What did you do? 2) What did happen? 3) What you expected to happen? 1) I did : FILE *f = ap_pfopen(r->pool, r->filename, "r"); 2)but nothing happens 3) I would like to do then : use the file pointer f to read string, like fgets((f,..) ,etc. I have succeded in that with local files, but not with files on a remote computer.(and that's the case, beecause my server plays only the role of a proxy) Do you understand better ? (sorry for my english, I'm french...) Jack |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Is it possible to open a file when mod_proxy is activated ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|