cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: File Upload & Post problem - libcurl + PHP

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 3 May 2006 00:31:16 +0200 (CEST)

On Tue, 2 May 2006, lakshmipriya prabhu wrote:

> I am not using the command line client (--trace-ascii option cannot be
> used) because i need to capture the dynamic "_VIEWSTATE" variable which
> needs to be posted to the site which is not possible with the cURL.

Sure it is, you'd just extract the stuff you need and invoke curl. It is even
a lot easier if you ask me (but then I don't know much PHP).

> Even if i disable the CURLOPT_VERBOSE i get the same problem (File not
> getting uploaded and the parameters not getting posted.)

I certainly didn't mean that CURLOPT_VERBOSE caused your problem. I only
explained why you didn't see the trace output you missed.

> I am using HTTP analyser to track the request/response, cookie etc and
> emulating it in my code.

Then HTTP analyze both a manual operation and then your scripted version and
compare the requests.

> Could you suggest what is getting missed from my part for the upload and
> post not happening.

Sorry, but no. I already guide you to use/debug with libcurl properly and you
do your programming parts.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2006-05-03