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

curl-and-php

help with cURL + PHP

From: Mladen Jovic <mladen.jovic_at_hotmail.com>
Date: Mon, 3 Nov 2014 23:30:31 +0100

Hello,i saw this example code for cURL on: http://curl.haxx.se/libcurl/php/examples/httpfileupload.htmli want to ask you if you can help me how i can use this for remote forms?
For example: https://raz.zav-zdruzenje.si/infocenter/Search.aspxin this form i would like to fill up first and second input, but with your example looks like this is not possible for remote forms.

My code now looks like: <?php $ch = curl_init("https://raz.zav-zdruzenje.si/infocenter/Search.aspx"); curl_setopt($ch, CURLOPT_POSTFIELDS, array('ctl00$ICContentPlaceHolder$dBoxFrom'=>"24.10.2014", 'ctl00$ICContentPlaceHolder$tbVehicleRegistrationNumber'=>'LJ FF 350')); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $postResult = curl_exec($ch); curl_close($ch); print "$postResult";?>but no success with this code for now
i hope you will have time to help me with this, cuz i spent almost 5hours with no success
P.S: I'm not programer so i would like some help for beginner :) I'm sory if i didn't do something right, because i'm using first time mail lists.

Thanks, Mladen

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2014-11-03