Skip to content
Advertisement

Request library is not sending request

If I send second request by hand, it works fine, but if I try to do that by python, it is failing. No errors in apache log. File remains the same and is not overwritten. Code:

JavaScript

php code:

JavaScript

Advertisement

Answer

If I understand what you’re trying to do, I think your if statements aren’t actually checking what you want. According to your comment, it should be:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement