Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: php arrays to perl

by bigup401 (Pilgrim)
on May 16, 2017 at 11:44 UTC ( [id://1190368]=note: print w/replies, xml ) Need Help??


in reply to Re: php arrays to perl
in thread php arrays to perl

well, it says missing data text1. thats the problem it cant get text1 data

my $ua = HTTP::Tiny->new; my $url = "link"; my $param = { text1 => 'text0', text2 => 'text01', text3 => 'text02', }; my $params = $ua->www_form_urlencode( $param ); my $response = $ua->post( $url . '/?' . $params );

Replies are listed 'Best First'.
Re^3: php arrays to perl
by tobyink (Canon) on May 16, 2017 at 11:49 UTC

    You are trying to send POST data like it was GET data.

    Try this:

    my $ua = HTTP::Tiny->new; my $url = "link"; my $param = { text1 => 'text0', text2 => 'text01', text3 => 'text02', }; my $response = $ua->post_form($url, $param);

      thanks tobyink, it was helpful worked

Re^3: php arrays to perl
by Corion (Patriarch) on May 16, 2017 at 11:49 UTC

    In my previous reply I gave you very concrete steps to follow to investigate where the cause of your problems lies:

    1. So, please look at the data that the PHP program sends to the remote end.

    Which of these steps have you followed, and what were the results?

    What were the problems you encountered when trying the steps?

    Please try the steps again and report the exact results.

      "I gave you very concrete steps to follow ..."

      You don't seem to realize that just because you type words, people might not understand them.

        In such circumstances people can reply asking for clarification on any points they don't understand. That's how communication works.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1190368]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (9)
As of 2024-04-24 10:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found