Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 8th, 2001, 04:41 AM
Jackft Jackft is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Posts: 2 Jackft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Post Is it possible to open a file when mod_proxy is activated ?

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.

Reply With Quote
  #2  
Old August 8th, 2001, 03:00 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> 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?

Reply With Quote
  #3  
Old August 8th, 2001, 03:44 PM
Jackft Jackft is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Posts: 2 Jackft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> 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

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Is it possible to open a file when mod_proxy is activated ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway