<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel about="http://blog.gmane.org/gmane.comp.web.curl.php">
    <title>gmane.comp.web.curl.php</title>
    <link>http://blog.gmane.org/gmane.comp.web.curl.php</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.curl.php/3138"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.curl.php/3136"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.curl.php/3135"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.curl.php/3132"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.curl.php/3131"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.curl.php/3129"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.curl.php/3123"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.curl.php/3110"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.curl.php/3109"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.curl.php/3096"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.curl.php/3086"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.curl.php/3084"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.curl.php/3082"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.curl.php/3080"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.curl.php/3079"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.curl.php/3077"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.curl.php/3076"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.curl.php/3073"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.curl.php/3072"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.curl.php/3068"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3138">
    <title>trying to simulate login to UPS (willing to $pay$ for solution)</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3138</link>
    <description>_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
</description>
    <dc:creator>Vadim_ghk</dc:creator>
    <dc:date>2008-12-01T09:03:40</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3136">
    <title>sending POST data to remote server</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3136</link>
    <description>Hi,

I have a problem with sending data to remote server. Actually, not to 
every remote server so I want to ask if there are any conditions for 
that remote server which have to be obey like that remote server have to 
have switched on curl extension too or something like that. My source 
code is :

  $ch = curl_init("http://byt.sk/inzeraty-byty-predam.php");

  curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
  curl_setopt($ch, CURLOPT_HEADER, TRUE);
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  curl_setopt($ch, CURLOPT_POST,TRUE);
  $postData = array("_id_kraj"=&gt;"100",
                    "_strPrev"=&gt;"50",
                    "_strFrst"=&gt;"0",
                    "_strNext"=&gt;"150",
                    "_strLast"=&gt;"11253",
                    "_btnNext"=&gt;"+50+&gt;+");
  $post = 
"_id_kraj=100&amp;_strPrev=50&amp;_strFrst=0&amp;_strNext=150&amp;_strLast=11255&amp;_btnNext=+50+&gt;5";
  curl_setopt($ch, CURLOPT_POSTFIELDS,$post);

  $result  = curl_exec($ch);
  echo $result;

Several names of variables are in Slovak, but it isn't</description>
    <dc:creator>Lukas Polak</dc:creator>
    <dc:date>2008-11-30T19:53:23</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3135">
    <title>Help debugging Curl PHP script when downloading PDF</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3135</link>
    <description>_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
</description>
    <dc:creator>Rick Rodriguez</dc:creator>
    <dc:date>2008-11-23T14:11:34</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3132">
    <title>Introduction and first question</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3132</link>
    <description>Hi,

I am fairly new to curl, I have done simple file transfers with it in
the past, but that's it.
Now I am trying something else:

I need to log in to an OWA Exchange Server (MS-Exchange 2007) and
download an attachment from a specific message.

At the moment I am finding bits and pieces of information here and
there, so I am looking for pointers and similar examples.


I am using curl 7.16.4 on the command.

Here's my current script:

curl -v --cacert /home/mritzkowski/curl/cacert.pem -s -b cookies.txt
-c cookies.txt -A "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT
5.0)" -L https://webmail.company.com/owa/auth/logon.aspx?url=https://webmail.company.com/owa/&amp;reason=0
-d username=username -d password=password -d
destination=https://webmail.company.com/owa/ -d flags=0 -d
forcedownlevel=0 -d isUtf8=1 -d SubmitCreds=Log%20On -d
https://webmail.company.com/owa/

I get this output:

 * About to connect() to webmail.company.com port 443 (#0)
*   Trying 172.27.13.63... connected
* Connected to webmail.company.co</description>
    <dc:creator>Matthias Ritzkowski</dc:creator>
    <dc:date>2008-11-21T17:16:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3131">
    <title>PHP - Curl and Multipart Form File Upload</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3131</link>
    <description>Hello,
I'm new to PHP but I've spent a lot of time looking and trying.
My goal is to write a php script that would take a file and upload it
to an image host website through the use of multipart form post.

I've read on the php.net site and tried their examples, 1 of them with
fsockopen, that totally didn't work. Now I'm trying curl, and I'm
running into the problem where I get something like this:


* About to connect() to www.imageboo.com port 80 (#0)
*   Trying 67.159.45.97... * connected
* Connected to www.imageboo.com (67.159.45.97) port 80 (#0)
Host: www.imageboo.com
Accept: */*
Content-Length: 157
Expect: 100-continue
Content-Type: multipart/form-data;
boundary=----------------------------8d605df41713

&lt; HTTP/1.0 200 OK
&lt; Date: Fri, 21 Nov 2008 03:58:28 GMT
&lt; Server: Apache/1.3.41 (Unix) PHP/5.2.5 mod_perl/1.30
mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8
mod_ssl/2.8.31 OpenSSL/0.9.8b
&lt; X-Powered-By: PHP/5.2.5
&lt; Cache-Control: no-cache, must-revalidate
&lt; Expires: Mon, 26 Jul 1997 05:00</description>
    <dc:creator>Andrey Kuznetsov</dc:creator>
    <dc:date>2008-11-21T04:10:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3129">
    <title>Javascript and Curl?</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3129</link>
    <description>_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
</description>
    <dc:creator>Andre Lopes</dc:creator>
    <dc:date>2008-11-16T19:27:58</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3123">
    <title>Curl error 7 while accessing a subdomain</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3123</link>
    <description>_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
</description>
    <dc:creator>Rakhy Sunny</dc:creator>
    <dc:date>2008-11-14T18:36:37</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3110">
    <title>Sending a XML using Curl</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3110</link>
    <description>_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
</description>
    <dc:creator>Quad is Activating</dc:creator>
    <dc:date>2008-11-12T08:47:24</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3109">
    <title>pecl-http curl-related compile errors</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3109</link>
    <description>_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
</description>
    <dc:creator>Sam Sexton</dc:creator>
    <dc:date>2008-11-11T12:10:53</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3096">
    <title>open_basedir and curl</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3096</link>
    <description>_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
</description>
    <dc:creator>curl</dc:creator>
    <dc:date>2008-11-06T09:38:52</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3086">
    <title>How to download a file that has no extension in url? or bypassdownload prompt?</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3086</link>
    <description>_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
</description>
    <dc:creator>Jo Anonymous</dc:creator>
    <dc:date>2008-11-03T14:57:46</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3084">
    <title>Support for latest features in php</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3084</link>
    <description>_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
</description>
    <dc:creator>Jeff Wolkove</dc:creator>
    <dc:date>2008-11-03T00:45:59</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3082">
    <title>which is the way to obtain a web page across a form</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3082</link>
    <description>_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
</description>
    <dc:creator>Rafael De_Linares</dc:creator>
    <dc:date>2008-11-01T10:22:58</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3080">
    <title>curl error 6 Couldn't resolve host in PHP</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3080</link>
    <description>Hi,

Have been trying to get curl working on our new server and redesigned 
site.  Server is openBSD4.3, php and curl installed from packages.  PHP 
version 5.2.5, curl version libcurl/7.17.1 OpenSSL/0.9.7j zlib/1.2.3 
libidn/1.1.

Trying to connect to a credit card processing company's testbed 
environment, however curl seems to never be able to resolve the hostname 
when run through PHP.  I have been able to telnet and ping the hostname 
and it has resolved without issue.  Was even able to resolve and connect 
when I just ran curl on the command line just fine.  The problem only 
seems to be when trying to use the PHP curl implementation.  Have been 
searching on google and a little bit on the archives for possible 
solutions and come up empty.  All solutions I have found degraded to 
"it's your hosting company, their DNS is broken" however, this is an 
internal server and the only thing having trouble resolving dns is this 
webserver and ONLY when trying to use curl in PHP.

Code is as follows, pretty str</description>
    <dc:creator>Adam Stelmack</dc:creator>
    <dc:date>2008-10-31T18:36:24</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3079">
    <title>passing data back from curl callbacks in php</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3079</link>
    <description>Hello,

i've been using libcurl in C programs before, but now i'm trying to use the php
binding to do similar stuff, and i'm running into the following issue:

- libcurl uses callbacks to pass received headers and data back to the application
- the callbacks can be set with the php api

- with the C api, a userdata pointer (CURLOPT_READDATA) is passed to the callback,
  also you can store userdata in the curl handle (CURLOPT_PRIVATE) which is
  available from inside the callback by using getopt on the handle...
- in the php api those two are missing?!?

so, with the php api, it seems that the only way to pass results of processing the
data or headers back to the application from within the callbacks is using global
variables, which is really ugly...

am i missing something maybe?

(if you can't see the relevance:
i'm writing a function that passes through data from a remote server, but in the
case that the headers indicate an error, i need to pass control back to the caller
(by returning an error message).
t</description>
    <dc:creator>Thorben Thuermer</dc:creator>
    <dc:date>2008-10-29T15:16:01</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3077">
    <title>Cookies: Desperately Need Help</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3077</link>
    <description>Hello all,

Can anyone provide a different view on why cURL sends 2 extra cookies that don't belong (seem) to belong to the target domain and don't get sent when using a browser. I apologize for the long content to follow. It is my hope that someone will see the glitch. Btw, I'm an airline pilot, doing this for fun and to make computer life easier???

The background is that I use 3 php/curl pages to accomplish a task normally taking more steps and lots of useless data. The first page performs 13 curl transfers, to include login, and successfully gets the proper data. Selecting an item on this page requests the second page with only 1 curl transfer and also successfully gets the correct response. Then, requesting the 3rd page,which conducts 16 curl requests, there are 2 cookies that get sent, and it is my guess that this causes the server to respond differently. The primary emphasis is this help request is the presence of these 2 cookies being sent by curl. These two are: 

portalNRTP=10%2F23%2F2008+8%3A57%3A</description>
    <dc:creator>David Colter</dc:creator>
    <dc:date>2008-10-24T20:39:18</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3076">
    <title>curl_multi_wait?</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3076</link>
    <description>Dear curl/PHP folks,
Don't you think a function, that waits for all multi handles to finish or
timeout would be useful? Using curl_multi_select is a waste of time with fast
url-fetches. Calling curl_multi_exec repeatedly is also a wast of CPU cycles,
even ef you "sleep" a little between calls. I think a simple "curl_multi_wait"
that will return when al handles are done (success or timeout) would be a very
welcome addition. Implemented in the curl_ext, and not in PHP. Whom should I ask
to implement it? Are the extension's developers here. Anyone else agrees with me
that this is missing. Or do I miss something about how to use curl with PHP?
Thanks,
András

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
</description>
    <dc:creator>Andris Kardos</dc:creator>
    <dc:date>2008-10-24T10:41:32</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3073">
    <title>nss/ssl issue</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3073</link>
    <description>Hello everybody.

Here's what firefox's live headers addon show me ... I'm just trying to
make a simple script to login on that site just as my normal browser would
do ..
Anyone any ideas? Thanks in advance.

* Connected to etisalat.com.eg (196.219.46.2) port 80 (#0)
/pls/portal/portal.wwptl_login.show_site2pstoretoken?p_ref=XXXX_LOGIN_XXXXXX&amp;p_url=http%3A%2F%2Fetisalat.com.eg%2Fpls%2Fportal%2Furl%2Fpage%2F%2FEtisalat%2FLogin
HTTP/1.1
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.2)
Gecko/2008100707 Fedora/3.0.2-1.fc10 Firefox/3.0.2
Host: etisalat.com.eg
Accept: */*
Cookie:
portal=9.0.3+en-us+us+AMERICA+58E90945621D6F9CE04400144F3E96AB+3ECA006DxXXXxxXxxXxxxXX29EED8D85D9D8B2BDD677B5F68B8A4FED9A2A4DA4AB56D0DBBF13B0514EF8B3F551534627D2B08F0D5DC7FE5C26AD69FA77413ACB49E7B815374D9E7654589FB52E5FB497292D975C1563D

&lt; HTTP/1.1 200 OK
&lt; Cache-Control: max-age=0
&lt; Content-Type: text/html; charset=UTF-8
&lt; Server: Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server
OracleAS-Web-Cache-10g/10.1.2.0.2</description>
    <dc:creator>S A.</dc:creator>
    <dc:date>2008-10-10T16:15:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3072">
    <title>unable to set private key file</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3072</link>
    <description>Hi guys

I am using cURL to connect to a secure web service via HTTPS and, from the
command-line, this works fine but from within PHP it doesn't. I've spent almost
a whole day trying to resolve this and can't see a solution so I thought someone
else might know.

I originally have a PKCS#12 combined multicertificate which I split into its
components:

openssl pkcs12 -in MULTICERT.p12 -out ca.pem -cacerts -nokeys
openssl pkcs12 -in MULTICERT.p12 -out client.pem -clcerts -nokeys
openssl pkcs12 -in MULTICERT.p12 -out key.pem -nocerts 

I set the PEM passphrase for the key to 'password' for testing, and test that
this all works via command-line:

curl -v --key ./key.pem --cacert ./ca.pem --cert ./client.pem:password
https://www.mbnet.pt/pvtn

I get a response back, which means that the keys are understood by cURL.

Translated into PHP, the code for the above line is:

$ch = curl_init();

curl_setopt($ch, CURLOPT_VERBOSE, '1');
curl_setopt($ch, CURLOPT_SSLKEY, 'key.pem');
curl_setopt($ch, CURLOPT_CAINFO, getcwd().</description>
    <dc:creator>Justin Finkelstein</dc:creator>
    <dc:date>2008-10-06T12:28:41</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3068">
    <title>help needed uploading file via a form</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3068</link>
    <description>My system:
Linux 2.6.18-92.el5
PHP 5.1.6 (cli) (built: Jun 12 2008 05:02:35)
libcurl 7.15.5

I am trying to upload a file through a form. The steps I follow are:

1) visit the login page to get the __VIEWSTATE variable   &lt;--ok
2) login     &lt;--ok
3) visit the upload page to get __VIEWSTATE  &lt;-- ok
4) upload the file   &lt;-- NOT OK!!!

Here is the form:

&lt;form name="Form1" method="post" action="quote_upload.aspx" id="Form1"  
enctype="multipart/form-data"&gt;
&lt;input type="hidden" name="__VIEWSTATE" value="fickshurt" /&gt;
&lt;input name="file_path" id="file_path" type="file" style="WIDTH:  
392px; HEIGHT: 22px" size="46" /&gt;
&lt;input type="submit" name="upload_quote" value="Upload"  
id="upload_quote" /&gt;
&lt;/form&gt;

I have read a hundred web pages, tried a hundred different things, and  
all I get back is either 1) 403 Forbidden or 2) 500 Internal Server  
Error.

Here is the current set of CURLOPTs I'm using (some of which are  
currently commented out.

     curl_setopt($ch, CURLOPT_COOKIEFILE, $cookypath);
     //curl_setop</description>
    <dc:creator>Thomas Townsend</dc:creator>
    <dc:date>2008-09-29T17:25:16</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.curl.php/3067">
    <title>FTP problem</title>
    <link>http://comments.gmane.org/gmane.comp.web.curl.php/3067</link>
    <description>_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
</description>
    <dc:creator>Anton Andrievskij</dc:creator>
    <dc:date>2008-09-28T11:18:11</dc:date>
  </item>
  <textinput about="http://search.gmane.org/?group=$group=gmane.comp.web.curl.php">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.web.curl.php</link>
  </textinput>
</rdf:RDF>
