Announcement

Collapse
No announcement yet.

perl files need content-type added for all POST requests

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    perl files need content-type added for all POST requests

    I'm trying to upload a v8 installation (for the first time to this particular ISP) and keep freezing on the "checking perl" settings of the "test network settings"

    the ISP is EVOHOSTING,

    I've uploaded other sites before, and am accustomed to tweaking the settings to make it work 100% but this one has got me a bit flumoxed (is that the right spelling??)

    anyway.
    Testing the network installs three perl files into the CGI directory
    1. cp000003.pl
    2. sa000003.pl
    3. ts000003.pl

    so the path is correct, date-time stamps are also correct
    I've deleted the three files and they get re-created
    it then tries to run the perl scripts and fails,

    When I talk to the support staff he quotes this from the error-log
    This has nothing to do with the perl location (ie can't find the perl executor)

    Your scripts are working fine it's just that your POST requests are getting blocked by our mod_security rules.

    It's always the same rule, and here's what gets logged:
    POST /cgi-bin/ActinicPost.pl HTTP/1.1
    User-Agent: Catalog
    Host: www.xxxxx.co.uk
    Content-Length: 12
    Cache-Control: no-cache

    HTTP/1.1 403 Forbidden

    Message: [client 8??.??.??.??] mod_security: Access denied with code 403, [Rule: 'REQUEST_HEADERS:Content-Length' '!^0$'] [ID "392301"] [Msg "Atomicorp.com UNSUPPORTED DELAYED Rules: Request Containing Content, but Missing Content-Type
    header"] [severity "NOTICE"] [MatchedString "POST"]
    If you add a proper 'Content-Type' HTTP header for your POST requests then that should fix it.

    Try it out and let us know how it goes.
    its easy to search the files for content-type and correct it, but he's telling me to insert the content-type, of course, I can't find something that isn't there.

    I've looked for actinicPost.pl in all the cgi-bin folders, I've looked for the string "actinicPost" within the perl files, nothing.

    does anyone know where I should be looking (and what for) and what the patch should be

    kevin

    #2
    This is the Network test failing and may not be relevant to your live site actually working (live site uses normal HTML FORM submits). Try uploading the live site and see what happens.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      thanks Norman, I just couldn't see that anything was wrong.

      strangely enough, without making any changes to my scripts, I hit the "test network" everything has "just started working"
      its as though someone (not me) has been snooping at the domain setup and "flicked a few switches" to make things work
      i'm sure they haven't done anything and its all totally my fault

      I've still got more investigating to be done, but thanks

      kev

      Comment

      Working...
      X