Richard Dachowski | 2 Oct 2005 13:14
Picon
Favicon

IPV6 Support not shown from output curl -V command

I have downloaded the curl binary using the curl download wizard that is found on the curl site. I also downloaded the openssl binaries as well. The output from my curl -V command is listed below:

C:\curl-win32\curl-7.14.0>curl -V
curl 7.14.0 (i586-pc-mingw32msvc) libcurl/7.14.0 OpenSSL/0.9.8 zlib/1.2.2
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: Largefile NTLM SSL SSPI libz

As you can see, the IPV6 feature is NOT listed on the line starting with the word, Features:. Since the curl binary I downloaded is the latest one, is there a different, already built, curl binary package, that contains a libcurl version that includes the IPV6 capability? Does anyone have any suggestions on where I can download a curl binary download that includes a libcurl version that supports IPV6? Or is there a curl command line option I am not using that must be specified in order to use IPV6? Or is there an environment variable I need to define? I am using curl on a windows 2003 enterprise server system.

Please respond to rdachows <at> us.ibm.com.


Thank you very much.

rdachows <at> us.ibm.com

Daniel Stenberg | 2 Oct 2005 19:47
Picon
Favicon

Re: IPV6 Support not shown from output curl -V command

On Sun, 2 Oct 2005, Richard Dachowski wrote:

> As you can see, the IPV6 feature is NOT listed on the line starting with
> the word, Features:. Since the curl binary I downloaded is the latest one,

The binaries provided from the download page are only what friendly people 
provide. They are not complete and there are numerous build combinations that 
aren't offered as binaries.

The only sane thing to do here is to download the sources and build your own 
version that has the features you need/want.

Or pay someone to do it for you.

> is there a curl command line option I am not using that must be specified in 
> order to use IPV6?

No, if IPv6 isn't mentioned in the features list there is no IPv6 support in 
the library.

--

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html

Daniel Stenberg | 3 Oct 2005 10:10
Picon
Favicon

We had more than 100,000 unique visitors

Hi

We've passed another little mile stone.

September 2005 was the first month we had more than 100,000 (one hundred 
thousand) unique visitors on the curl web site.

curl packages were downloaded more than 20,000 times from the curl.haxx.se 
site only during the month.

Over the last year, we have gained approximately 50% more visitors on the web 
site.

Thanks to all you who make this possible: people writing stuff that show up on 
the site, people who help me admin the site, people hosting site mirrors, 
companies buying ads and people referring to our site from all over.

--

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html

Pedro Neves | 3 Oct 2005 12:35
Picon

curlopt_writefunction doubt

Dear all,

I have a doubt related to the CURLOPT_WRITEFUNCTION. I want to get
information from an http server and then store the result in a file.
After the result is stored, I have to search a specific string inside
the file. My doubt is in the use of the curlopt_writefunction. How do I
store the information I receive in a file?

Thanks in advance for your help.

Best Regards,
Pedro Neves

Daniel Stenberg | 3 Oct 2005 13:34
Picon
Favicon

Re: curlopt_writefunction doubt

On Mon, 3 Oct 2005, Pedro Neves wrote:

> I have a doubt related to the CURLOPT_WRITEFUNCTION. I want to get 
> information from an http server and then store the result in a file. After 
> the result is stored, I have to search a specific string inside the file. My 
> doubt is in the use of the curlopt_writefunction. How do I store the 
> information I receive in a file?

Don't doubt that function, doubt your callback...

How you store the info to a file? You can do it anyway you like. I usually 
open() or fopen() a file and then I write() or fwrite() incoming data to the 
file.

BTW, you are better off asking libcurl questions on the curl-library mailing 
list...

--

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html

Usha | 4 Oct 2005 10:52

Curl Userfriendly GUI tool

Hi all,

Im a linux user, seeking for a   Curl GUI tool for  its easy usage. Have
anyone come across ?

Thanks

Daniel Stenberg | 4 Oct 2005 13:00
Picon
Favicon

Re: Curl Userfriendly GUI tool

On Tue, 4 Oct 2005, Usha wrote:

> Im a linux user, seeking for a Curl GUI tool for its easy usage. Have anyone 
> come across ?

Perhaps this suits you? http://urlget.sourceforge.net/

--

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html

Marc Champagne | 4 Oct 2005 13:06
Picon

Re: Curl Userfriendly GUI tool

That would then make it a "browser".

Ah the new generation....

Cheers
Marc

Usha wrote:
> Hi all,
> 
> Im a linux user, seeking for a   Curl GUI tool for  its easy usage. Have
> anyone come across ?
> 
> Thanks
> 
> 
> 

Darryl House | 4 Oct 2005 18:23
Picon
Favicon

curl -z option fails with ftp

When I use the -z option and obtain a timestamp from a
file name, it works well with HTTP, but fails with
FTP.

For example, this command will always fetch a file,
even though the timestamp on the local file is
identical to that on the server:

curl -R -o destfile -z destfile ftp_url

I can work around this by obtaining the timestamp from
the local file myself, but since this is an advertised
feature (and a cool one, at that!) I thought you
should know.

As requested, here is more info from using this
command with a verbose output (user names and
passwords have been yoinked):

root <at> wxframe:~# curl -v -R -o
sat_atlhurr_fullview_640x480.jpg -z
sat_atlhurr_fullview_640x480.jpg
ftp://<yoink>:<yoink> <at> imageserv.intelliweather.net/broadcast/test/sat_atlhurr_fullview_640x480.jpg
Warning: Illegal date format for -z/--timecond (and
not a file name).
Warning: Disabling time condition. See curl_getdate(3)
for valid date syntax.
* About to connect() to imageserv.intelliweather.net
port 21
*   Trying 209.218.29.131... connected
* Connected to imageserv.intelliweather.net
(209.218.29.131) port 21
< 220 imageserv Microsoft FTP Service (Version 5.0).
> USER <yoink>
< 331 Password required for <yoink>.
> PASS <yoink>
< 230-Welcome to IntelliWeather Imagery Server
< 230 User <yoink> logged in.
* We have successfully logged in
> PWD
< 257 "/" is current directory.
* Entry path is '/'
> CWD broadcast
< 250 CWD command successful.
> CWD test
< 250 CWD command successful.
> MDTM sat_atlhurr_fullview_640x480.jpg
< 213 20051004164654
> EPSV
< 500 'EPSV': command not understood
> PASV
< 227 Entering Passive Mode (209,218,29,131,7,240).
*   Trying 209.218.29.131... connected
* Connecting to 209.218.29.131 (209.218.29.131) port
2032
* Connected the data stream with PASV!
> TYPE I
< 200 Type set to I.
> SIZE sat_atlhurr_fullview_640x480.jpg
< 213 45179
> RETR sat_atlhurr_fullview_640x480.jpg
< 125 Data connection already open; Transfer starting.
* Getting file with size: 45179
  % Total    % Received % Xferd  Average Speed   Time 
  Time     Time  Current
                                 Dload  Upload   Total
  Spent    Left  Speed
  3 45179    3  1448    0     0    832      0  0:00:54
 0:00:01  0:00:53   832226 Transfer complete.
100 45179  100 45179    0     0  21353      0  0:00:02
 0:00:02 --:--:--  113k
* Connection #0 to host imageserv.intelliweather.net
left intact
> QUIT
< 221  bye for now...
* Closing connection #0
root <at> wxframe:~#

zEUZ | 4 Oct 2005 20:51
Picon
Favicon

Re: telia.se login

Ive managed to get the cookie working and i now get the login page. But im not sure how to do the post. Ive tried
but it doesnt work.

curl -L -b cookies -c cookies -o login.html
https://komc.tewss.telia.se/adressbok/db/pck_html_Kontakt.starta -d "user=ME&password=MyPW"

Here is the form i want to post.

<FORM name="login" method="POST" action="/ssotcwss/login">
     <INPUT type='hidden' name='auth_mode' value='basic'/>
	<INPUT type='hidden' name='ct_orig_uri' value='https://komc.tewss.telia.se:443/adressbok/db/pck_html_Kontakt.starta'>
			<TABLE><TR><TD vAlign=top><B>Anv&auml;ndarnamn:*</B></TD>
                        <TD><INPUT type="text" size="32" style="width=150" maxlength="32" name="user" value="" ><BR><SPAN
class=contentblue>Sm&aring;bokst&auml;ver a-z, siffror 0-9 samt _ &auml;rtill&aring;tet.</SPAN><BR></TD></TR>
                    <TR><TD vAlign=top><B>L&ouml;senord:*</B></TD>
                        <TD><INPUT type="password" size="32" style="width=150" maxlength="32" name="password"
value=""><BR><SPAN class=contentblue>Minst 6 tecken, sm&aring; eller stora bokst&auml;ver a-z,
siffror 0-9 samt _ &auml;r till&aring;tet.</SPAN><BR></TD></TR>
                    <TR><TD><IMG src="/images/p.gif" width=1></TD>
                        <TD><input type=image height=19 alt="Logga in" src="/img/buttons/button_loggain.gif" width=63
align=right border=0></TD></TR>
             </TABLE>
</FORM>

https://access.tewss.telia.se/ssotcwss/login

POST /ssotcwss/login HTTP/1.1
Host: access.tewss.telia.se
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: https://access.tewss.telia.se/servlet/tcwss-login/login.jsp?CT_ORIG_URL=https%3A%2F%2Fkomc.tewss.telia.se%3A443%2Fadressbok%2Fdb%2Fpck_html_Kontakt.starta&ct_orig_uri=%2Fadressbok%2Fdb%2Fpck_html_Kontakt.starta
Cookie: JSESSIONID=D8Mwr1tbXWpmkcv7Rm3L2dxM2YWRJ1hynVYLG9bpL4n8Y2QyjCvz!526028274
Content-Type: application/x-www-form-urlencoded
Content-Length: 155
auth_mode=basic&ct_orig_uri=https%3A%2F%2Fkomc.tewss.telia.se%3A443%2Fadressbok%2Fdb%2Fpck_html_Kontakt.starta&user=ME&password=PW&x=43&y=18
HTTP/1.x 302 Moved Temporarily
Date: Thu, 29 Sep 2005 15:47:22 GMT
Server: Apache
Location: https://komc.tewss.telia.se:443/adressbok/db/pck_html_Kontakt.starta
Set-Cookie:
CTSESSION=AAAAAQABAEiU/AMJWG8Uk15YnKyDwxM/uuTQ/8Eo3LJD3gYDS6O5HZc3dOoXROIWi7GF9reG8XbE0c8JU4mqDtjIN7zT+diwXSmwFNmenAY=;
domain=.tewss.telia.se; path=/; secure
Set-Cookie: FULLNAME=ME; domain=.tewss.telia.se; path=/
P3P: CP='NOI IND COM NAV CURa OUR'
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/plain; charset=ISO-8859-1

On Thu, 29 Sep 2005 13:55:45 +0200, Daniel Stenberg <daniel-curl <at> haxx.se> wrote:

> On Thu, 29 Sep 2005, zEUZ wrote:
>
>> curl -d "username=ME&password=MyPW"
>> https://komc.tewss.telia.se:443/adressbok/db/pck_html_Kontakt.starta
>
> Ok, then you could proceed with:
>
> Add -L to make curl follow locations and
>
> Add "-b -" to activate curl's built-in cookie parser.
>
> Add "--trace-ascii dump" to get a full trace of what happened to make it
> easier to understand exactly what happened and what didn't.
>
> But, I would advice that you first use LiveHTTPHeaders to track down exactly
> what your browser does. It isn't unlikely that you need to first get the login
> page to collected some cookies and _then_ do the post. Many sites work that
> way.
>


Gmane