Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

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 January 30th, 2003, 07:26 AM
pixelle's Avatar
pixelle pixelle is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: stuttgart
Posts: 4 pixelle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Flash, CGI and 403 Errors

Hi there,
has anyone any experience using a contact-form out of a running swf-file - i know the syntax and it works almost 100%, but
there are a few internetusers who get a 403-errror-page when calling the cgi-script out of the flash-file.
has anyone an idea, why they get the 403 (forbidden)- page?

grateful for any help,
pixelle

Reply With Quote
  #2  
Old January 30th, 2003, 07:28 PM
VAYKENT VAYKENT is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Provo
Posts: 36 VAYKENT User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Do you have any sample code that you could post.... code that is causing the problems??

Reply With Quote
  #3  
Old January 31st, 2003, 02:44 AM
pixelle's Avatar
pixelle pixelle is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: stuttgart
Posts: 4 pixelle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
code for swf and cgi

sure,

i am using this code on a submitbutton in the flashfile:

on (release) {
getURL ("http://www.fantastic-sports.net/cgi-bin/fsformmail.pl", "_blank", "POST");
}

there are some text-fields like
recipient:
URL
subject and so on (equivalent to hidden fields, you know?)

then for the cgi i use Formail from URL
i just copy the first part of it, but the problem should not be the "formail.pl" (which is chmoded properly 755)

thanx for helping,
pixelle

here the first part of the formmail.pl:


#!/usr/bin/perl

##############################################################################

# FormMail Version 1.92 #

# Copyright 1995-2002 Matt Wright URL #

# Created 06/09/95 Last Modified 04/21/02 #

# Matt's Script Archive, Inc.: URL #

##############################################################################

# Define Variables #

# Detailed Information Found In README File. #



# $mailprog defines the location of your sendmail program on your unix #

# system. The flags -i and -t should be passed to sendmail in order to #

# have it ignore single dots on a line and to read message for recipients #



$mailprog = '/usr/lib/sendmail -i -t';



# @referers allows forms to be located only on servers which are defined #

# in this field. This security fix from the last version which allowed #

# anyone on any server to use your FormMail script on their web site. #



@referers = ('fantastic-sports.net','fantastic-sports.com','eurobungee.de');



# @recipients defines the e-mail addresses or domain names that e-mail can #

# be sent to. This must be filled in correctly to prevent SPAM and allow #

# valid addresses to receive e-mail. Read the documentation to find out how #

# this variable works!!! It is EXTREMELY IMPORTANT. #

@recipients = (&fill_recipients('fantastic-sports.net','fantastic-sports.com','eurobungee.de'),

'^info@fantastic-sports\.net');



# ACCESS CONTROL FIX: Peter D. Thompson Yezek #

# @valid_ENV allows the sysadmin to define what environment variables can #

# be reported via the env_report directive. This was implemented to fix #

# the problem reported at URL #



@valid_ENV = ('REMOTE_HOST','REMOTE_ADDR','REMOTE_USER','HTTP_USER_AGENT');



# Done

Last edited by pixelle : January 31st, 2003 at 02:47 AM.

Reply With Quote
  #4  
Old February 1st, 2003, 01:55 PM
VAYKENT VAYKENT is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Provo
Posts: 36 VAYKENT User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
K. I give up. I haven't spent too much time thinking about it, but nothings poppin into my head right away... sry!

The only other thing I can think of is that it's not Flash.... and that's easy to test.. have the same clients who get the 403 error load the ~exact same~ URL into IE.. and see what happens.

Reply With Quote
  #5  
Old February 2nd, 2003, 10:16 AM
pixelle's Avatar
pixelle pixelle is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: stuttgart
Posts: 4 pixelle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy what u mean?

sorry, do you mean i should copy this line
URL
into a browsers-adress-field?
because, if i do, i get an 403 myself, though the script worked fine on my comupter so far.

i really have no idea, where the error could be...

pixelle

Reply With Quote
  #6  
Old February 2nd, 2003, 10:26 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
so the script does work if YOU access it, but not for some others.
the script wants to have a referrer for blocking spammers from using it (as if this would help...)

i guess they have broken browsers or setup some "personal firewall" or webwasher or something that removes the referer. their fault, not yours. 1000s of other pages won´t work either for them.

you could modify the script:
1. line:
if ($ENV['HTTP_REFERER']=="") { print "Your browser did not transmit a referer. Sorry, you cannot use this feature."; die(); }

though i am not 100% sure about the "$ENV". could be "%ENV" or something. if you want to go this way, ask in the perl forum how to read the HTTP_REFERER from a perl cgi. They´ll know the answer.
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #7  
Old February 2nd, 2003, 01:16 PM
pixelle's Avatar
pixelle pixelle is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: stuttgart
Posts: 4 pixelle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanx for helping,
i just found out what is happening:
the script is working only on macs - not on pcs, BUT
only on the server of one provider - i put the script on a different
server (of another provider, though both are using the same apache
server) and now it works!
weird.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Flash, CGI and 403 Errors


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





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