The Linux Page

Pages with category Web Server

  • I've been trying to send a POST to Apache 2.x using cURL. In itself, that's very easy to do. However, I run modsecurity and when cURL sends a POST that's too large, it actually decides to break the transfer down using an Expect: 100-continue header. That in itself sound good.

    Some people said that you could override the Expect by adding the curl option to add a header like this:

      curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));

    This sounds all nice, however, it only removes the header from the request, it does not prevent the errors with modsecurity. Not only that, the curl header

  • As I'm working on a Zap application (see Zapier). I got this error about my triggers:

    REST hook trigger needs a polling url (ZSE007)

    So... I understand that they want to have a URL to do a poll and they even have documentation that explains why they want to poll in case of a REST hook Zap: Whenever the user wants to test the Zap, the application will get some data using the polling method. That way they can get that data specifically for one test and not force you to generate an trigger. One problem with testing with an actual trigger is that any other Zap listening to the same trigger ...

  • I wanted to dynamically manage the attributes of the HTML tag. As I'm working on the Snap! C++ system, I thought that should be done with the standard XSLT feature: <xsl:attribute-set name="...">. Unfortunately the the XQuery implementation does not currently support such, at all.

    There is a way, though, to still make it work with a central template definition which can be used to decide what should be and what should not be added to the HTML tag.  Especially, in this way we can make use of one template that is a system defined template. This being said, if you use ...

  • After about 2 hours of search, I finally got it. All the docs were telling me do this:

    	var f = document.getElementById('myform');
    	f.action = url;
    	f.submit;
    				

    And it did not work. I was getting an error. So thinking that this 'action' is an attribute I used f.setAttribute('action', url);. And that worked great with Sea Monkey, FireFox, etc. but one day we tried under Internet Explorer. That one was not working somehow. Reading some notes on the net, indeed, setAttribute('action', url)is no good under Internet Explorer. But f.action = url;generates an error?!

    After ...

  • When I create a new DigitalOcean droplet I have to run a few commands that I don't otherwise use very much at all so I was thinking that adding them here would make it easier to remember.

    First if you setup an SSH key on DigitalOcean before you create the servlet, then you will be able to access the server root account with SSH.

    ssh -l root -i <path-to-key> <ip-address>

    IMPORTANT NOTE: Although you will have access with an SSH key, the system will ask you for a root password if you use the wrong key. So make sure to use the -i option if you have multiple keys and the one ...

  • Ubuntu Installation

    In the last few days, I've been testing SquirrelMail. It's neat. Really ugly, but neat as it is very small and still quite functional.

    To install on Ubuntu, just use apt-get install as in:

    apt-get install squirrelmail

    The available plugins as of Ubuntu 10.04:

      squirrelmail-compatibility - SquirrelMail plugin: Let other plugins work with older/newer SM versions
      squirrelmail-decode - SquirrelMail support for decoding exotic character sets
      squirrelmail-locales - Translations for the SquirrelMail Webmail package
      squirrelmail-lockout - SquirrelMail plugin:
    
    
  • Today we had a problem with a combo of website that we never tried to run together.

    Looking into it, it was definitely a problem with SSL. However, Apache2 would tell us absolutely nothing about it. No error or access logs. I think this is because it would happen at the time Apache and the client negotiate the SSL connection and Apache does not report such problems (at least by default, it might in case you turn on some debug mode?)

    We had two different settings for two websites using the snakeoil certificate (As we test on VM machines, we use the snakeoil certificate as an easy way to check ...

  • Today I had a weird one.

    The PHP function named stream_socket_client(), used to create a socket to communicate with another computer over a network, may return $errno = 0 and $errstr = "".

    The PHP reference actually mentions the problem:

    On failure the errno and errstr arguments will be populated with the actual system level error that occurred in the system-level connect() call. If the value returned in errno is 0 and the function returned FALSE, it is an indication that the error occurred before the connect() call. This is most likely due to a problem initializing the socket. ...

  • As I wanted to use SugarCRM on my new server, I looked into the Community Edition and apparently the company is not willing to convert their code so it works under PHP 7.

    So that would not work on a newer system because the code uses quite a few forbidden mechanism (wrong class definitions, old defunct functions...) and that prevents to even instal the system on your machine.

    Now, I have looked closer into it and I am getting a version that works pretty darn well already. I still have some issues here and there, but I think you can already make use of that version. Except for one thing which ...

  • Today I ran in an error that looked like this:

    Invalid argument supplied for foreach() in <path>/modules/taxonomy/taxonomy.module on line 1214.

    The line number may vary depending on the version you are using. At the time, I had Drupal 6.14 and the line number was 1214.

    The problem is with a node that has an invalid definition of its taxonomy field. In other words, the $node->taxonomy is not defined. If it were an empty array, the function would not fail.

    [toc hidden:1]
Syndicate content

SMS From Me Logo

SMS From Me

To automatically start one on one conversations with your online leads.

     

   

Terms of Site Index

Find the page/content you are looking for with our index.

  • Internet

    Inter-Network. The Internet was created at a University to attempt to connect computers between each others from "far away places" (i.e. two buildings in the same University). The main concept was to create a set of protocols to make the systems work. Namely, the SMTP, FTP and TELNET. Now we have many others such as the well known HTTP, which is based on the TELNET concept.

  • checkbox
  • disk
  • double
  • msdn

    Microsoft Developer Network, a website, many documentations, all for developers on Microsoft Windows.