Discussion:
Basic Q: * getaddrinfo(3) failed for curl:80
s***@aol.com
2009-09-18 15:18:15 UTC
Permalink
I'm wanting to use cURL to send files to my vendor who is using ipswitch's moveit software. ipswitch supports curl and I've followed their command line example.



Here's a nice link of my command:




http://pastie.org/621735




It is also here in this plaintext:


curl -k -v -c cookie2.txt "https://clientaccess.tabsdirect.com/?transaction=signon&username=Myuid&password=Mypw" curl -b cookie2.txt -k -v --data-binary @/Volumes/Humanes\ Assets/AC_2009_Aug_images.zip -H "Content-Type: multipart/form-data" -H "X-siLock-AgentBrand: cURL" -H "X-siLock-AgentVersion: 7.16.2 "-H "X-siLock-FolderID: Image" -H "X-siLock-OriginalFilename:AC_2009_Aug_images.zip" -H "X-siLock-FileSize:6687471" "https://clientaccess.myvendor.com/moveitisapi/moveitisapi.dll?action=upload" curl -k -v -b cookie2.txt "https://clientaccess.myvendor.com/?transaction=signoff"

As you'll see it's three curl commands, bookended by cookie pushes. Looking at cURL's output I sense that these bookend commands are working. The payload command appears to fail with the text in the subject line.




Looking at the list's archives, I see that some folks have a similar issue because it cannot find a website, etc. But my error makes me think that something in my command betrays my inexperience with curl. It's like it's expecting a url for an argument but I'm unsure where it would go. Ipswitch thinks my command line is OK, so it must be my ignorance.




Please educate me so I can finish this part of my project.




I'm running OS X 10.5.8 and cUrl

curl 7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3




thanx, sam
Daniel Stenberg
2009-09-18 15:31:10 UTC
Permalink
Post by s***@aol.com
curl -k -v -c cookie2.txt
"https://clientaccess.tabsdirect.com/?transaction=signon&username=Myuid&password=Mypw"
Assets/AC_2009_Aug_images.zip -H "Content-Type: multipart/form-data" -H
"X-siLock-AgentBrand: cURL" -H "X-siLock-AgentVersion: 7.16.2 "-H
"X-siLock-FolderID: Image" -H
"X-siLock-OriginalFilename:AC_2009_Aug_images.zip" -H
"X-siLock-FileSize:6687471"
"https://clientaccess.myvendor.com/moveitisapi/moveitisapi.dll?action=upload"
curl -k -v -b cookie2.txt
"https://clientaccess.myvendor.com/?transaction=signoff"
(This is a subject for the curl-users list really.)

You're sending the second command line without the proper newline separation
so thus the 'curl' in there is treated as a URL and that would then be tried
as curl:80 and clearly you don't have such a host to resolve...
--
/ daniel.haxx.se
Loading...