Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: curl/php/post..
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Von Hawkins via curl-users <curl-users_at_lists.haxx.se>
Date: Fri, 7 Jan 2022 15:49:33 -0600
Sent from my iPhone
> On Jan 7, 2022, at 2:24 PM, bruce via curl-users <curl-users_at_lists.haxx.se> wrote:
>
> Hi .
>
> Got a weird issue/question. I'm missing something simple, and can't
> seem to get to the "aha" moment.
>
> I've got a test XHR from a chrome extension with a POST packet.
>
> I've used the basic "Curl" test to run the curl with the "-d"
> postPacket from the linux cmdline. It works.
>
> I've also decided to try copying the "same" postData" to a tmp file,
> and to then use the "-d _at_tmp.dat" file process to test it out.
>
> It appears I'm somehow getting en extra char!
>
> The postData is a urlencoded(json_encoded)) array/json so the postData
> is in encoded chars.
>
> My simple srvr test is a php test, so I've done the usual "trim" for
> the whitespaces with no luck.
Can you use od or some such to identify the extra character, or at least where it appears?
My guess is that it’s a line ending or similar.
>
> So. I'm posting here in the hopes that someone might say something
> that'll trigger my brain!
>
> thanks
> --
> Unsubscribe: https://lists.haxx.se/listinfo/curl-users
> Etiquette: https://curl.haxx.se/mail/etiquette.html
Date: Fri, 7 Jan 2022 15:49:33 -0600
Sent from my iPhone
> On Jan 7, 2022, at 2:24 PM, bruce via curl-users <curl-users_at_lists.haxx.se> wrote:
>
> Hi .
>
> Got a weird issue/question. I'm missing something simple, and can't
> seem to get to the "aha" moment.
>
> I've got a test XHR from a chrome extension with a POST packet.
>
> I've used the basic "Curl" test to run the curl with the "-d"
> postPacket from the linux cmdline. It works.
>
> I've also decided to try copying the "same" postData" to a tmp file,
> and to then use the "-d _at_tmp.dat" file process to test it out.
>
> It appears I'm somehow getting en extra char!
>
> The postData is a urlencoded(json_encoded)) array/json so the postData
> is in encoded chars.
>
> My simple srvr test is a php test, so I've done the usual "trim" for
> the whitespaces with no luck.
Can you use od or some such to identify the extra character, or at least where it appears?
My guess is that it’s a line ending or similar.
>
> So. I'm posting here in the hopes that someone might say something
> that'll trigger my brain!
>
> thanks
> --
> Unsubscribe: https://lists.haxx.se/listinfo/curl-users
> Etiquette: https://curl.haxx.se/mail/etiquette.html
-- Unsubscribe: https://lists.haxx.se/listinfo/curl-users Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2022-01-07