Programming :: Curl: (3) URL Using Bad/illegal Format Or Missing URL

Feb 16, 2011

What is the problem? I receive this message (see in red) when i running this script (below) on bash script file:

error received:

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 70 0 70 0 0 321 0 --:--:-- --:--:-- --:--:-- 0


View 1 Replies


General :: Curl - Curl API To Configure Only The Required Protocol?

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

Programming :: Curl And ASP Authentication - Cannot Verify Credentials

Sep 6, 2010

I've got an asp page (I can't edit) which I can access with a test user I've setup, however when I try to access to same page via curl, I get the following error:
<h1> You are not authorized to view this page </h1>

The URL you attempted to reach has an ISAPI or CGI application installed that verifies user credentials before proceeding. This application cannot verify your credentials. There's lots of other text (doubt it's relevant though).

Here's the one liner I'm using:
curl -A "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" -u myusername:mypassword [URL]
I've done some searching but cant find anything which doesn't suggest rewriting the asp...

View 1 Replies View Related

Programming :: Non-existent File Is Also Downloaded By Curl?

May 25, 2011

I am trying to download a non-existent file from a repository by giving the URL, using curl APIs. It is throwing an error message "The requested URL returned error: 404" but the specified file is downloaded with 0 bytes. My code snippet is as follows :

#include <curl/curl.h>
#include <stdio.h>
#include <math.h>


View 9 Replies View Related

Programming :: Download Images From Text File Using Curl

Apr 18, 2011

I am having some issues with downloading images to my website from my suppliers!

I have a text file (extracted from product their product lists) which has all of the image URLs!

I have tried to use php using the below script which was started via a cron job, however exec is blocked and my hoster has told me to use curl..... Is there something that can be written in or with curl to do the same thing?

View 4 Replies View Related

Programming :: Resume Download By Curl Without Mentioning The No. Of Bytes?

May 25, 2011

I am trying to resume an aborted download. I have to use the curl_easy_setopt(hnd, CURLOPT_RESUME_FROM_LARGE,(curl_off_t)no. of bytes to be skipped) to set from where to start resuming download. But in run time, how would i put the no. of bytes to be skipped? Its not possible always to see how much is the size of file downloaded already. So is there any way so that prograjm will automatically know from where to start??

View 5 Replies View Related

Programming :: Use Curl And Spawn Multiple Connection At A Time?

Jan 24, 2010

I am using a perl script which uses curl in the background to download files from rapidshare premium,one file at a time. I wanted to know is it possible to use curl and spawn multiple connection at a time,to download the same file in multiple parts?? I don't seem to find an option in curl which does that.

View 1 Replies View Related

Programming :: Submitting Using Curl - Include Html Tags?

Jun 24, 2011

I am writing a script that is used to submit a package to testflight from my build system. In order to make the presentation as clear as possible I would like to include some basic HTML in the note section, however, using a < or > causes an error in curl. I have tried different variations of quoting and escaping but have not yet been able to find the solution.

VERSION_HEADER='<strong>Version: </strong>'


If I use VERSION_HEADER="'<strong>Version: </strong>'" then the single quotes are submitted.

If I use < or > then those are submitted but the receiving api does not decode them correctly.

Can anyone suggest a way to submit exactly: <strong>Version: </strong>

View 3 Replies View Related

Programming :: Openssl Versus Curl - Build An Https Client In 'C' Language

May 6, 2011

I need to build an https client in 'C' language on linux platfrom and my app is a multithreaded each thread it need to send a seperate https request to the same server..and receive response.... I used openssl library for this, i am able to send request to server. but when i am trying to read the socket (using SSL_Read) it's closing connection(returning 0 with error code 29).

View 3 Replies View Related

General :: Fix Error"CURLOPT_USERNAME \ Undeclared "in Curl Ftp Programming?

Jun 9, 2010

i have written file transfer program using libcurl.

#include <stdio.h>
#include <curl/curl.h>
#include <curl/types.h>


View 1 Replies View Related

General :: Missing Secondary Hard Drive After LVM Format ?

Nov 3, 2010

My Red Hat EL 5.5 64 bit edition, I've install it on my primary hard drive 12 GB it works fine and then I added secondary 20 GB hard drive (sdb1) into this system and then format it as VolGroup01 see the attachment, but how come it doesn't show up ?


View 3 Replies View Related

Programming :: CURL In Bash - Error "Upload Is Disabled During Short Maintenance Work (ETA 10 Minutes). Brb"

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 -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:


View 1 Replies View Related

Ubuntu :: Print A Form In PDF Format - Inches Of The Page Is Missing

Dec 1, 2010

When I print a form in PDF format the top 5 or so inches of the page is missing, when I view the page in Print preview the top of the page is not showing either. I need to print and send away this form asap. I just seen the bottom 5 inches of the page is missing as well

View 1 Replies View Related

Ubuntu :: Format Cption And Take It All Back To The Original Settings, It Says That C: Is Too Small Or Missing?

Oct 6, 2010

Seems that i have totally ****ed up my sony vaio (vgn-fz21z). I've been doing some partitioning and formatting without really knowing what i was doing. Now it is a mess.The vaio comes with pre-installed windows vista, which is no longer installed. I want it to be.Ubuntu 10.4 is installed. In grub I can choose vista but that is only vaio recovery tool. Which is not working. When I try the format cption and take it all back to the original settings, it says that c: is too small or missing.

I also have some cd:s with windows 7 and xp on, but they can't be read. Now the vaio is not even accepting my ubuntu live-cd. I have nothing of importance on the computer, so there would be no problem re-formatting the whole thing. Can it be done? I would prefer is the vaio recovery tool could be left untouched, it has its own partition. I guess I'm asking: is there a way from inside ubuntu to make a total system re-installation, get rid of different partitions and reconstruct c:, so win can be installed again?

View 9 Replies View Related

Programming :: Awk: How To Keep The Format Of The Record

Apr 5, 2010

In /etc/fstab, I have a record:LABEL=/< >/< >ext3< >default,nolog< >1 1 represent a tab between 2 fieldsI just want to remove "nolog" in the 4th field (only): gsub(/nolog/,"",$4)The function work ok but it returns a record:LABEL=/ / ext3 default 1 1I know the problem is OFS=" ", but how can I keep the format of the record? (the same number of tabs, spaces).

View 5 Replies View Related

Programming :: Best Way To Transform XML Format?

Sep 10, 2010

I'm looking for some expert opinion on sed/script to work out the best way to transform one xml format into another however there are a few complexities around translation.

The extra complexities are to:
1) Take the start and stop time (YYYYMMDDHHMMSS) and convert to start time to unix time plus output the difference in seconds between both times.
2) Oid, tsid and sid are found by looking up an external file and finding the value against the channel. For example one of the lines in the file will be 2:806:27e2=channel1

Is there any way to write piped sed commands that can do this? If not, any ideas how the script should look like?

Input File
<programme start="20100910060000 +0100" stop="20100910061000 +0100" channel="channel1">
<title lang="en">This is the title</title>
<desc>This is the description</desc>
Output File

<service oid="0002" tsid="0806" sid="27e2">
<event id="0">
<name lang="OFF" string="This is the title"/>
<text lang="OFF" string="This is the description"/>
<time start_time="1284098400" duration="600"/>

Look up file for oid, tsid and sid

View 8 Replies View Related

Fedora :: Telinit - Illegal Run Level 333

Oct 12, 2009

I just upgraded Fedora 10 to Fedora 11. When I rebooted I just had a flashing cursor. So I typed Ctrl-Alt-F2 to open a console window on booting. That worked fine. I was going to edit xorg.conf because I suspected the problem was related to haveing installed the latest Linux NVIDIA drivers (and custom kernal) in Fedora 10 before upgrading to Fedora 11. But, I decided to edit the run level in /etc/inittab first. Unfortunately, I fat fingered run level 3 to runlevel 333. No when booting I get hung up with the error "telinit: illegal run level 333". When I try to use Ctrl-Alt-F2 to open a console window on booting now it doesn't work. How to get into a console window with this error?

View 1 Replies View Related

Ubuntu :: Can't Upgrade Illegal Package Name?

Jul 11, 2011

I've been trying to install the latest updates on my Ubuntu 10.10 system but keep getting the same error in Update Manager and the terminal:

dpkg: file triggers record mentions illegal package name I've tried running sudo dpkg --configure -a and sudo apt-get upgrade -f after running sudo apt-get update but to no avail.

After searching the forum and google I haven't been able to find this issue or a solution to a similar issue that works for my problem.

View 9 Replies View Related

Server :: Illegal Character In User Name?

Mar 7, 2010

I have a SUSE mail server where I have user names like john.doe. And so the email address looks like [URL]..Now I move the server to slackware and I cannot create such users, it shows the error (I use adduser command): User 'john.doe' contains illegal characters (period/dot); please choose another What can be the best (simplest) solution to preserve my email addresses as they are. I also would like to preserve the user-names used for email authentication, because there are lot of mail user clients already using those logins. What is the point in that the dot is illegal in user names? I guess that there is a good reason to this but I would like to know what it is.

View 3 Replies View Related

Software :: Play On Using Illegal Scripts?

Feb 17, 2011

I just downloaded Play On Linux to my computer. I saw that I could install Microsoft Office 2007, and wondered ho that was legal, so I clicked on it. An install wizard came up and said, we are not in charge for anything that happens.

View 3 Replies View Related

Programming :: Format Int 1 To String 0001 In C++?

Feb 16, 2011

In C++ as subjected, can anyone throw me some light on how I can generic-ly format an integer value of 1 to a string value of 0001? 11 to 0011? and 111 to 0111? simply by just appending 0 in front and limiting the length of the string to 4?

View 4 Replies View Related

Programming :: Scan In A File Which Has The Format?

Apr 3, 2011

I am trying to scan in a file which has the format of

right now my program says
Scanner fin = null;
fin = new Scanner(new FileReader("proj1/passwd.txt"));


How do i correctly use delimiter to take in only the strings on one line?

View 1 Replies View Related

Programming :: Sed - Series Of Files In The Format

Sep 21, 2009

I have a series of files in the format:

Which I'm trying to split using sed to have each field/value pair on on line:

So far so simple, but some of the values might have commas in them, which means they'll be split up. Is there a way to change this so that only commas not within quotes will be replaced with ? (e.g. make sed count number of " and if it finds a , after counting an odd number of " then ignore it?)

View 2 Replies View Related

Fedora :: Yum Update Gives Illegal Instruction Error

Aug 17, 2011

my firefox has been crashing since yesterday and when i tried to run yum update it gives me error: illegal instruction (core dumped)

View 7 Replies View Related

OpenSUSE Network :: Cannot Browse Outside LAN - Illegal Request

Jan 12, 2010

Tomorrow I decided to dedicate 100% of my disk to opensuse! So I backed up the files from the remaining windows partition, deleted them and expanded the /home partition. Well, I ran into some problems during first boot. I referred to an article at the wiki and fixed it. Although I did some small fixing manually at the fstab file. The system booted! But I can't browse anywhere outside the local network! At this forum I found some info regarding the dmesg |tail command. Here is my output:

biduzido@biduNote:~> dmesg |tail
[ 1256.061852] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1256.061865] sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current]
[ 1256.061873] sr 1:0:0:0: [sr0] Add. Sense: Logical block address out of range
[ 1256.061882] end_request: I/O error, dev sr0, sector 0
[ 1256.061890] Buffer I/O error on device sr0, logical block 0
[ 1256.062662] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1256.062672] sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current]
[ 1256.062682] sr 1:0:0:0: [sr0] Add. Sense: Logical block address out of range
[ 1256.062690] end_request: I/O error, dev sr0, sector 0
[ 1256.062697] Buffer I/O error on device sr0, logical block 0

View 6 Replies View Related

Ubuntu :: Finding Windows-illegal Filenames?

Jun 18, 2011

I want to search a bunch of files in Ubuntu to find the ones that have file names which Windows won't allow. There is too many to do it manually.

View 1 Replies View Related

Networking :: Ntop Illegal Filter Error?

Aug 20, 2010

ntop installed on CentOS5 system running as squid using yum. Starting ntop on command line and not as daemon and gives error for illegal filter.

Fri Aug 20 14:10:12 2010 NOTE: Interface merge enabled by default
Fri Aug 20 14:10:12 2010 Initializing gdbm databases


View 1 Replies View Related

General :: Valgrind : Illegal Opcode Memcpy In /lib/

Oct 24, 2010

I am running Valgrind on PowerPC target machine. I get the following error


==2848== Memcheck, a memory error detector.
==2848== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.
==2848== Using LibVEX rev 1884, a library for dynamic binary translation.
==2848== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.


View 1 Replies View Related

Security :: Search And Destroy Illegal Services?

Jan 24, 2011

I'm looking for a script that can look for illegal scripts/services that are being run on OpenVZ VPS from the host node. Things like IRC, EggDrop, Brute Force scripts and such.

View 7 Replies View Related

Server :: Proftpd 500 Illegal Port Command?

Jan 25, 2011

I set up a FTP server for a client. Running Ubuntu 10.10 server and proftpd. While setting it up, I was able to log into FTP from filezilla from in my office no problems. Now suddenly I cannot access it from inside, but I can still access it like normal from outside my network.I am getting 500 illegal port command when using activeAnd when I use passive, I get fail to retrieve directory.The server is on a DMZ, so ports should not be a problem, and according to our admin nothing has changed within our firewall

View 21 Replies View Related

Copyrights 2005-15, All rights reserved