Search Result

Collapse
19 results in 0.0024 seconds.
Keywords
Members
Tags
curl
  •  

  • PHP - Verify username and password of remote website

    I am not a programmer, i want to check the username and password of remote website using php curl script. I have to code but it doesnt work. Can any one make changes to this script and make it workable?

    Here is the script
    Code:
    $username="yumiyao0926"; 
    $password="yumiyao0926"; 
    $url="http://www.hotfile.com/login.php"; 
    $cookie="cookie.txt";
    ...
    See more | Go to post

  • Kabir khan
    started a topic cURL post data to asp.net page
    in PHP

    cURL post data to asp.net page

    I am trying to call the __doPostback javascript function in a asp.net page from php using curl.
    I used below code but getting error like
    Encountered error while processing the request. Please try again using the Home button.

    Diagnostic Information:
    Error Type: Exception of type 'System.Web.Htt pUnhandledExcep tion' was thrown.
    Code:
    $url = "http://opanet.hrsa.gov/OPA/Reports/Reports.aspx";
    ...
    See more | Go to post

  • mike809
    started a topic Javascript using link user click simulation
    in PHP

    Javascript using link user click simulation

    I'd like to get contents of a website using JavaScript menu. I need to simulate clicks (or typing javascript:goto Page("p10"); into a browser) on menu links to be able to move from one page to another.

    Basically the process will look like this:
    while (any_content) {
    file_get_conten ts();
    clickalink();
    }

    Can cURL or JSON be used for this task?...
    See more | Go to post

  • ziycon
    started a topic cURL Issue: prompt user to save file
    in PHP

    cURL Issue: prompt user to save file

    I've have the below code and its works fine, how can I get the file to prompt the user to save it instead of specifying a path on the server to save it?

    I have to use curl due to hosting and memory issues on the hosting.

    Any help much appreciated.
    Code:
    <?php
    $contentType = 'text/plain';
    $file = 'http://mysite.com/test.txt';
    
    $fp = fopen('/path/to/save/mytest.txt', 'w');
    $ch = curl_init($file);
    ...
    See more | Go to post

  • ziycon
    started a topic Readfile() replacement cURL?
    in PHP

    Readfile() replacement cURL?

    I'm unable to use the code snippet below for a file download on a site as readfile is disabled for security reasons, I'm told cURL can be used, any advice on how to change it or on the below replacement would be great, thanks.
    Code:
    header('Content-type: '.$contentType);
    header('Content-Disposition: attachment; filename="'.$filename.'"');
    header('Content-length: '.$filesize);
    readfile($file);
    Is there...
    See more | Go to post

  • larachy
    started a topic cURL, JavaScript and Php
    in PHP

    cURL, JavaScript and Php

    I’ve developed a scraper using cURL and PHP what can scrape from different websites very well. But, if a website uses JavaScript POST operation, cURL code doesn’t work. Do you have suggestion to solve this problem?
    Thank you in advance.


    A sample code is attached as follows:
    Code:
    <?php
    
    $postUrl = 'https://tigerwoodsonline.ea.com/users/login';
    $postData = array(
       'login' => 'zaque.rasel@yahoo.com',
    ...
    See more | Go to post

  • Veronika Cabalo
    started a topic Help with redirecting or cUrl Please.

    Help with redirecting or cUrl Please.

    Hello, I need help with my form.

    I created send text message form but after submitting it opens up a new site where it gives out the session information and all the details. I would like to redirect it or just add something to the code so it wouldn't show that page. I was told about using curl too but I have no idea how to apply it. Here's the form:

    Code:
    <form action="https://api.tropo.com/1.0/sessions?action=create"
    ...
    See more | Go to post
    Last edited by Niheel; May 24 '11, 02:51 AM.

  • dskanth
    started a topic How to do curl Authentication?
    in PHP

    How to do curl Authentication?

    Hi, iam working on a curl based authentication and iam sending a curl request to one of my pages, like this:

    Code:
    <?php
    $ch = curl_init("http://localhost/test.php");
            
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
    curl_setopt($curl, CURLOPT_USERPWD, 'myuser:mypwd'); 
    // sending username and pwd.
    ...
    See more | Go to post

  • getting Bad Request during opening a querystring file in CURL

    my code is
    Code:
    $URL:https://demo.firstach.com/https/TransRequest.asp?Login_ID=someit&Transaction_Key=somekey&Customer_ID=23&Customer_Name=Muhammad Naeem&Customer_Address=Address&Customer_City=city&Customer_State=HI&Customer_Zip=54000&Customer_Phone=--&Customer_Bank_ID=111111118&Customer_Bank_Account=12345678901234567890&Account_Type=Business Checking&Transaction_Type=Debit&Frequency=Once&Number_of_Payments=1&Effective_Date=12%2F05%2F2010&Amount_per_Transaction=10.00&Check_No=&Memo=&SECCType=WEB
    ...
    See more | Go to post

  • Lars Pedersen
    started a topic Why doesn't my cygwin work with the cURL example?
    in C

    Why doesn't my cygwin work with the cURL example?

    Hi guys

    Compiler: Cygwin
    OS : Windows 7 (64 bit)
    C-Skills: Basic Understanding

    So... I'm trying to make my cygwin compiler work with the cURL library, but it isn't really working all that well...

    I've tried to completely re-install cygwin, by first removing the folder I stored cygwin in and then install cygwin with the 4 different cURL library's possible.

    I can call functions...
    See more | Go to post

  • C++, using Curl, code to copy source of webpage causes errors

    Here is my code: What it has to do is convert the webpage source into a .txt file, but unfortunately it is causing exceptions. In case anyone asks, I am using Visual C++ 2010 Express.

    Why is it not working?

    The code:
    Code:
    #include "curl.h"
    #include "easy.h"
    
    size_t write_data(void *ptr, size_t size, size_t nmemb, FILE *stream) {
    size_t written;
    written = fwrite(ptr,
    ...
    See more | Go to post
    Last edited by Alex T; Oct 20 '10, 11:43 PM. Reason: needed to ask another question

  • rahulag38
    started a topic Problem with CURL for a page using AJAX
    in PHP

    Problem with CURL for a page using AJAX

    Hello,
    First of all ,I have been a regular reader of the forum and it has increased my knowledge in the PHP a lot. :D
    Till now i had just been a guest user and used to go through the queries and tips posted here.

    Today , for the first time i am posting on the forum

    Coming to a problem:
    I have to design a function for a client from travel domain. Where he wants the script/function to go and...
    See more | Go to post

  • HTML and CSS for Curl applets embedded in object elements

    Over at developers.curl .com I have a blog post on an IE8 quirk which I hit while standardizing the html at my aule-browser.com website.

    When I moved the height and width parameters from the object tag and into a CSS style for objects, the size of my embedded applet immediately collapsed to the upper-left corner in IE8.

    It took some effort to discover that the order of the parameters was upsetting IE: in a moment of desperation...
    See more | Go to post

  • Literature and poetry text markup with the Curl web-content language

    I have posted a few examples of using Curl for poetry markup and I have several pages at poets.aule-browser.com

    Most often I use a single Curl outer element, e.g., {poem }
    {poem
    || poem text goes here
    }
    to wrap the entire text of a poem.
    Each stanza is then wrapped by a {stanza } element as follows, e.g.,
    {poem
    {stanza
    || lines here
    }
    {stanza
    || second here
    }
    ...
    See more | Go to post
    Last edited by lcurlr; Jun 8 '10, 08:12 PM. Reason: suspicion that I "advertise" a programming language from MIT

  • What is the best way to go about learning the Twitter API?

    I'm a web developer with experience in mostly front-end coding languages but I am very interested in learning more about the Twitter API. I have spent a decent amount of time reading the Twitter API documentation, but I am having a difficult time following the material. If you've had experience working with the Twitter API, I would really appreciate it if you could share some of your tips for learning the information. Thanks in advance!
    See more | Go to post
Working...