commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sébastien Bonaimé <bona...@ipgp.fr>
Subject Re: Php png attachement with commons.mail
Date Thu, 28 Jan 2010 13:35:13 GMT
Hi Siegfried,

I solved the space problem and the .htaccess but I found that a deny access
made by a .htaccess file cause org.apache.commons.mail to create an Invalid
URL and not Unauthorized Access.



Sébastien Bonaimé
Tel: +33 (0)1 44 27 24 17 Fax: +33 (0)1 44 27 38 94
GEOSCOPE Dept Sismologie
Institut de Physique du Globe Paris
Tour 14-15, 4ème étage
4, place Jussieu
75252 Paris cedex 05
France

Le 22 janv. 10 à 15:02, Siegfried Goeschl a écrit :

Hi Sebastien,

not sure if you got the execption due to the space issue or the
".htaccess" problem. Do you have a stack trace for the access denied?

Cheers,

Siegfried Goeschl

Sébastien Bonaimé wrote:

Dear all,


Thank you for you help. I realised that I had two problems. First one

was the space and %20 problem in the address


The second one was a .htaccess. I did not allow 127.0.0.1 to acces my

php script.


Is it a bug ? If you can not access the URL because of a htaccess

deny, you receive

org.apache.commons.mail.EmailException: Invalid URL


Thank you


Sébastien Bonaimé

Tel: +33 (0)1 44 27 24 17 Fax: +33 (0)1 44 27 38 94

GEOSCOPE Dept Sismologie

Institut de Physique du Globe Paris

Tour 14-15, 4ème étage

4, place Jussieu

75252 Paris cedex 05

France


Le 20 janv. 10 à 20:18, Siegfried Goeschl a écrit :


Hi Stefano,


good catch ... :-)


Siegfried Goeschl


Stefano Bagnara wrote:

The whitespace is not a valid character for URLs. Your browser

automatically convert the space to %20 when making the request.

Try using %20 instead of space in your code (param2 value) and I guess

it will work.


Stefano


2010/1/20 Sébastien Bonaimé <bonaime@ipgp.fr>:


I have the following error:

org.apache.commons.mail.EmailException: Invalid URL


set:
http://myserver.mydomain.org/myphpscript.php?param1=122&param2=2009-01-01



20:10:52


I changed name of the server, script and parameters...


Do you think it is possible to do that ?


In my browser,


http://myserver.mydomain.org/myphpscript.php?param1=122&param2=2009-01-0120:20:20



returns a correct png image.


I use the code that I found here:

http://commons.apache.org/email/userguide.html


Thank you


---------------------------------------------------------------------

To unsubscribe, e-mail: user-unsubscribe@commons.apache.org

For additional commands, e-mail: user-help@commons.apache.org



---------------------------------------------------------------------

To unsubscribe, e-mail: user-unsubscribe@commons.apache.org

For additional commands, e-mail: user-help@commons.apache.org





---------------------------------------------------------------------

To unsubscribe, e-mail: user-unsubscribe@commons.apache.org

For additional commands, e-mail: user-help@commons.apache.org






---------------------------------------------------------------------

To unsubscribe, e-mail: user-unsubscribe@commons.apache.org

For additional commands, e-mail: user-help@commons.apache.org




---------------------------------------------------------------------

To unsubscribe, e-mail: user-unsubscribe@commons.apache.org

For additional commands, e-mail: user-help@commons.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message