Networking :: Curl And Wget Error 400 Bad Request?
Nov 9, 2010
I use slackware current, and curl and wget give the following errors:
Code:
repo@cannabis ~]$ wget -r http://users.telenet.be/reggersjans
--2010-11-09 13:48:14-- http://users.telenet.be/reggersjans
Resolving users.telenet.be (users.telenet.be)... ::ffff:74.117.221.11, 74.117.221.11
Connecting to users.telenet.be (users.telenet.be)|::ffff:74.117.221.11|:80... connected.
HTTP request sent, awaiting response... 400 Bad Request
[Code]...
View 7 Replies
ADVERTISEMENT
Oct 11, 2010
I would like to find out how I would use both curl and wget to sent an http post to get the hostnames of a few servers. I know am not even given any work of anything I have done, but the reason is that I am really lost, and I do not even know how to start it.
View 4 Replies
View Related
Feb 12, 2011
Having a problem with my Belkin wireless adapter when trying to stream music to my Pinnacle Soundbridge.The network connection is usually rock steady but drops anywhere between and few second and a few minutes after streaming music. Network manager still shows the connection to my home network as active but it is not. The connection comes back when I unplug the dongle and plug it back in. I found the following message repeated in the syslog
phy3 -> rt2x00usb_vendor_request: Error - Vendor Request 0x06 failed for offset 0x3040 with error -110
Only thing I have noticed is that it refers to rt2x00 when I had thought it used the rt73usb driver.Had the PC and the Soundbridge for a number of years without any problems but I did recently have to reinstall Ubuntu from scratch. Currently running Ubuntu 10.10
View 4 Replies
View Related
Jun 24, 2010
Is there any curl API to configure only the required protocol. If I have proper openssl installed, the installed curl will have all the protocols (like HTTP, HTTPS, FTP, File etc...) supported by default. Is there any way to allow or disallow only some of the protocol at the runtime. Say I need to support only HTTPS, FILE and I dont want to allow HTTP. Is there any way to do this?
View 1 Replies
View Related
Jan 26, 2011
I have a strange problem with using curl function in php on slackware machines. So far I tested this on 2 PCs. I din't test it on any other distributions, so I don't know if it's only slackware problem.
Problem is that I can't use php curl in normal way. It can be tested wit simple code:
Code:
$ch = curl_init("url");
$content = curl_exec($ch);
if (curl_error($ch)) {
echo(curl_error($ch) . "<br>");
}
echo($content);
When I'm opening this php script in browser I'm getting error message:
Code:
Couldn't resolve host 'google.lv'
but I can use curl command in terminal, also it works when I run this php script in terminal like:
Code:
php ./curl_test.php
So problem is not in curl or php itself, but in apache, because this happens only when this script is running in apache.
Searching google a lot, I got to conclusion that apache can't read /etc/resolve.conf file during startup. Strange thing is that it happens only when httpd starts during system startup, but if I'm stopping httpd and starting it again manually, it works as it should until I'll reboot my PC. Restarting httpd also do not work, I need to do start -> stop.
I think that apache reads /etc/resolve.conf only when it starting up and as I have DHCP, maybe network is still not ready at the moment of httpd startup.
I didn't try to configure php as php-cgi instead of apache module, I think then it would work normally because each php script would be separate process and it would read dns information each time, so the same like starting php script in terminal with command:
Code:
php ./curl_test.php
I think there are some ways to workaround it, e.g. delay somehow start of httpd during system startup, or something like that, but I want to find reason of this problem and make it work without any workaround.
View 1 Replies
View Related
Aug 2, 2010
I'm trying to grab "repo" using curl and put it into /usr/local/bin/ but I can't seem to figure out why I'm getting a permission error:
Code:
$ sudo curl https://android.git.kernel.org/repo > /usr/local/bin/repo
bash: /usr/local/bin/repo: Permission denied
[code]....
View 1 Replies
View Related
Feb 17, 2010
I have two suse linux server. Recently we got the license key. In one server i could able to register successfully. Another server is throwing an error.i am using yast-software- Novel customer center configuration. After selecting configure now, i am getting error has follows Execute curl command failed with 7 curl: (7) could't connect to host.
View 3 Replies
View Related
May 6, 2011
I'm using cURL in ubuntu to download some files like
While some files may be missing from this sequence but when I just use curl -O [url]
cURL will download a 404 error page for those missing ones. How can I avoid this?
View 1 Replies
View Related
Feb 27, 2009
I use web server apache use php fastcgi (Centos 5.2, apache 2.2.9 , php 5.2.5 and fcgi-2.2.4 ). I receive error : "The server encountered an internal error or misconfiguration and was unable to complete your request. contact the server administrator, no-reply@zz.vn and inform them of the time the error occurred, and anything you might have done that may have caused the error. I view log :
[code]...
View 1 Replies
View Related
Jun 27, 2010
I'm running Slack 13.1 64 bit. I'd like to try running multi for 32 bit support so I can run a 32 bit version of firefox using the 32 bit flash plugin. Here's what I did: - followed Alien Bob's Wiki and download and installed all the *txz files. - installed a bunch of required libraries following the instructions on the Wiki - installed the 32 bit 10.1 version of the flash player plugin in $HOME/.mozilla/plugins/ - started the 32 bit 3.6.3 version of firefox; it seems to work fine. - go to about plugins and verify that Shockwave Flash (libflashplayer.so) is version 10.1 r53 and it is enabled. - run "ldd libflashplayer.so" and verified that all libraries are found. - run "ldd /usr/lib/firefox-3.6.3/firefox-bin" and verified all libraries are found. - go to [URL]... and click on "test your adobe flash player installation" I will get this error: Adobe Flash Player error: could not load cURL library - I verified (repeatedly) that I do have what I think is the correct package. How can I fix (or start debugging) this error?
View 7 Replies
View Related
Jan 29, 2011
I am trying to connect to the web interface found at [URL] using curl. This first requires login information to be entered at [URL], but I am having an issue with the login process. I am trying to submit the following form via POST:
Code:
<form action="j_security_check" method="post" id="login_form" name="login_form">
<center> <table style="background: #cac1cf;FONT-SIZE: 12px;">
<tr> <td align="center" colspan="2">Please enter your username and password:</td>
</tr> <tr> <td align="right">Username</td>
<td> <input name="j_username" style="width: 250px" id="j_username" type="text"/> </td>
</tr> <tr>
<td align="right">Password</td>
<td> <input style="width: 250px" name="j_password" id="j_password" type="password"/> </td>
</tr> <tr> <td colspan="2" align="center">
<input value="Enter" name="enter" type="submit"/>
<input value="Clear" name="Clear" type="reset"/>
</td> </tr> </table> </center> </form>
The command that I am using for this is the following:
Code:
curl -c cookies -b cookies -L -d "j_username=user%40domain.com&j_password=pass" [URL]
The command is properly formatted as far as I can tell. I tested it with another website using a similar authentication scheme using different POST variables specific to the form and it worked fine.
When I run the above command with the -v tag, it reveals this:
Code:
* Connected to lcl.uniroma1.it (151.100.4.74) port 80 (#0)
> POST /sso/j_security_check HTTP/1.1
> User-Agent: curl/7.21.0 (i686-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18
> Host: lcl.uniroma1.it
> Accept: */*
> Content-Length: 44
> Content-Type: application/x-www-form-urlencoded
>
} [data not shown]
< HTTP/1.1 408 The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser
< Date: Sat, 29 Jan 2011 15:26:41 GMT
< Server: Apache-Coyote/1.1
< Content-Type: text/html;charset=utf-8
< Content-Length: 1554
< Connection: close
<
{ [data not shown]
103 1554 100 1554 0 52 5081 170 --:--:-- --:--:-- --:--:-- 10223*
Closing connection #0
I cannot tell why the login timeout is expired when I try to do this, and my investigation toward this end has been fruitless. I saw a brief snippet on Google that vaguely suggested that the underscores in the domain name were at fault, but replacing these with their encoded counterparts did nothing to resolve the issue (that, and underscores should be fine when sent unencoded according to the standards). I have extensively perused the man pages and have come up with nothing to adequately explain this behavior. I also talked to a friend who has worked with curl in his line of work, but he mostly has experience in the context of PHP and has not dealt with this issue before. I am running GNU/Linux 2.6.35-22-generic-pae.
View 3 Replies
View Related
Jan 19, 2010
I am installed cUrl from http://packages.ubuntu.com/lucid/amd64/curl/download for my ubuntu 9.0 with php 5.2 ,Apache 2.0.It was installed by gkebi package installer. but when i display phpinfo() curl not found since i was attempt to use phptwitter class. what is the proble i have? When i am trying to install again package installer shows same version of curl already found, but phptwitterclass shows following error 'Method "curlQuery" of class "Twitter" reported an error: CURL library not installed.'
View 1 Replies
View Related
Jun 25, 2010
how to redirect all client http request to https request in squid
View 1 Replies
View Related
Aug 13, 2009
I'm having a strange problem with my Fedora 11 install under VMWare Server. I can look up hosts in nslookup, host, and I can ping servers using their names, but when I use curl, firefox, or yum, it says it can't resolve the host name.
View 6 Replies
View Related
Oct 16, 2010
I have a link to a pdf file, and I want to use wget (or python) to download the file. If I type the address into Firefox, a dialog box pops up asking if I want to open or save the pdf file. If I give the same address to wget, I receive a 404 error. The wget result is below. Can anyone suggest how to use wget to save this file?
View 1 Replies
View Related
Jun 19, 2011
If a wget download is interrupted (like if I have to shutdown prematurely), I get a wget.log with the partial download. How can I later resume the download using the data in wget.log? I have searched high and low (including wget manual) and cannot find how to do this. Is it so obvious that I did not see it? The wget -c option with the wget.log as the argument to the -c option does not work. What I do do is open the wget.log and copy the URL and then paste it into the command line and do another wget. This works but the download is started from the beginning, which means nothing in the wget.log is used.
View 2 Replies
View Related
Jan 22, 2011
Why doesn't this work?:
View 1 Replies
View Related
Jul 26, 2010
I have executed the command
Code:
sudo wget -r -Nc -mk [URL]
(referring the site : [URL]) for downloading entire website using wget for offline viewing on Linux,
At the middle of download I have shutdown my laptop (downloading was not over) and when I started my laptop again. I have executed the same command to continue downloading but I have got the error :
Code:
test@test-laptop:/data/Applications/sites/googlejam$ sudo wget -r -Nc -mk [URL]
--2010-07-25 19:41:32-- [URL]
Resolving code.google.com... 209.85.227.100, 209.85.227.101, 209.85.227.102, ...
Connecting to code.google.com|209.85.227.100|:80... connected.
HTTP request sent, awaiting response... 405 Method Not Allowed
2010-07-25 19:41:33 ERROR 405: Method Not Allowed.
Converted 0 files in 0 seconds.
test@test-laptop:/data/Applications/sites/googlejam$
View 8 Replies
View Related
Mar 15, 2010
I'm working on a old piece of code on linux, after compiling without porblem at the execution I have this response:
src/xproject/xproject: Ok, a color display! :-)
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 78 (X_CreateColormap)
Serial number of failed request: 7
Current serial number in output stream: 15
looking at the source code I think the problem is related at the depth of my system 24 bit and the depth of this old piece of code 8 bit. Unfortunately also I don't have experience in programming the XVideo and if someone can give me some help in programming the XVideo interface
View 5 Replies
View Related
Aug 31, 2010
I try to download the Tomcat from my LINUX machine with command:
Code:
wget -d -v http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23.zip
I got error as follow:
Code:
[root@s003ap23-test opt]# wget -d -v http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23.zip
Setting --verbose (verbose) to 1
[Code]...
View 4 Replies
View Related
Mar 2, 2010
I can not install files RPM, says there is error in the request.
View 1 Replies
View Related
Aug 10, 2010
End_request: I/O error, dev sds, sector 420656157
EXT3-fs error (device sda2) : ext3_find_entry : reading directory # 52527153 offset
What is this Above Error which I am getting , on my server
View 3 Replies
View Related
Jun 9, 2010
i have written file transfer program using libcurl.
#include <stdio.h>
#include <curl/curl.h>
#include <curl/types.h>
[code]....
View 1 Replies
View Related
May 4, 2010
Anyone know what this signifies in the Apache logs files:
Code:
[Tue May 04 20:56:06 2010] [error] [client *******] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
[Tue May 04 20:56:06 2010] [error] [client *********] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
[Tue May 04 21:05:18 2010] [error] [client ********] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
[Tue May 04 21:05:18 2010] [error] [client ********] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
View 2 Replies
View Related
Sep 1, 2011
i've installed nagios just from a while and after i installed centreon, since this when i try to log in the web interface of nagios it shows up this message: Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/2.2.17 (Ubuntu) Server at localhost Port 80
View 1 Replies
View Related
Mar 7, 2010
i'm trying to write a bash script to upload an image to [URL], but i can't get i working properly. Everytime i try, the html returns me a error saying "Upload is disabled during short maintenance work (ETA 10 minutes). Brb!", while from the browser everything works fine. This is my current command line:
Code: curl -L -b cookie-pix.txt -c newcookie.txt www.pixhost.org/cover-upload -A "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" -F 0=@/home/admin/Desktop/karm.jpg -F content_type=0 -F press=Upload And this is the html of the form:
[Code]....
View 1 Replies
View Related
Jul 10, 2011
During installation at, Select and install software, i had this extra option "Packages to install: rt2x00-source", and answered yes. sources.list has main and contrib sections.
lspci -k
Network controller: RaLink RT2561/RT61 802.11g PCI
Subsystem: Linksys WMP54G ver 4.1
Kernel driver in use: rt61pci
ifup wlan0 returns this,
SIOCSIFFLAGS: No such file or directory
[Code]...
View 5 Replies
View Related
Jan 15, 2010
I just made a fresh installation of Ubuntu Karmic, but I can't set up my screen resolution correctly. My monitor resolution (1680 x 1050) is not listed in 'Display Preferences' or in my card's proprietary software (ATI Catalyst). The maximum resolution I can select is 1440 x 900.xrandr detects a maximum resolution of 1440 x 1440 and displays the same list of screen resolutions as 'Display Preferences'.
But when I enter the line:
xrandr --newmode "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
I always get this message:
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 156 (RANDR)
Minor opcode of failed request: 16 (RRCreateMode)
[code]....
View 2 Replies
View Related
Jun 15, 2010
I am trying to backup a client called greetings.com, but when I do an amcheck on the server, I get:
WARNING: greetings.com: selfcheck request failed: Connection refused
View 2 Replies
View Related
Nov 25, 2010
I installed WordPress 3.x on my localhost/Apache server, but I can neither install plugins nor update anything.This happens with both the stable WP3.0 version and the 3.1 beta. When I try to search the Plugin Directory from the WP dashboard, I get this message: An Unexpected HTTP Error occurred during the API request.When I run an update, I get a page asking for the login credentials for the ftp user ("To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host."). Since I'm part of the 'ftp' group on the system, I enter my system login information, click Proceed -- and get a blank page that does nothing.
I've gone to YaST, and I see that the system ftp user has a 6-character password (which may or may not be mine). I'm afraid to change it and risk screwing up other ftp-related functions. I'm running openSUSE 11.3, and am obsessive about updating. I will note that I have an old 2WIRE router that often requires me (including Zypper repos) to enter IP addresses instead of DNS-based URLs to successfully download stuff. Not sure if this is related, but just in case...
View 1 Replies
View Related