On Fri, Aug 2, 2019 at 6:09 PM Dave S <snidely....@gmail.com> wrote:

>
> On Fri, Aug 2, 2019 at 6:01 PM Ken Ballentine via curl-library <
> curl-library@cool.haxx.se> wrote:
>
>> Still doesn't want to work.  Says < was unexpected at this time.
>>
>> Any other suggestions?
>>
>
> The uppercase 'C' in your command line suggests you're working from
> Windows.  Is this correct?
>
> Trying it from Centos 7 and a Bash shell,
>

and using single quotes  'https://...</ExternalReturnLabelRequest>'


> I actually send to the target and get back
>
> > User-Agent: curl/7.29.0
> > Host: returns.usps.com
> > Accept: */*
> >
> < HTTP/1.1 400 Bad Request
> HTTP/1.1 400 Bad Request
> < Content-Type: text/html; charset=us-ascii
> Content-Type: text/html; charset=us-ascii
> < Server: Microsoft-HTTPAPI/2.0
> Server: Microsoft-HTTPAPI/2.0
> < Date: Sat, 03 Aug 2019 01:06:46 GMT
> Date: Sat, 03 Aug 2019 01:06:46 GMT
> < Connection: close
> Connection: close
> < Content-Length: 311
> Content-Length: 311
>
> /dps
>
>
>>
>>
>>
>> On Fri, Aug 2, 2019, 5:54 PM Gordon Drukier via curl-library <
>> curl-library@cool.haxx.se> wrote:
>>
>>>
>>>
>>> On Aug 2, 2019, at 16:40, Ken Ballentine via curl-library <
>>> curl-library@cool.haxx.se> wrote:
>>>
>>> I'm trying to use the following request from curl:
>>>
>>> Curl -X GET -k -I
>>> https://returns.usps.com/Services/ExternalCreateReturnLabel.svc/ExternalCreateReturnLabel?externalReturnLabelRequest
>>> <https://returns.usps.com/Services/ExternalCreateReturnLabel.svc/ExternalCreateReturnLabel?externalReturnLabelRequest=>=<ExternalReturnLabelRequest><CustomerName>Chris
>>> Brown</CustomerName<CustomerAddress1>901 D Street
>>> SW</CustomerAddress1><CustomerAddress2>Suite
>>> 101</CustomerAddress2><CustomerCity>Washington</CustomerCity><CustomerState>DC</CustomerState><CustomerZipCode>20024</CustomerZipCode><MerchantAccountID>3</MerchantAccountID><MID>201198</MID><LabelFormat>NOI</LabelFormat><LabelDefinition>3X6</LabelDefinition><ServiceTypeCode>020</ServiceTypeCode><AddressOverrideNotification>true</AddressOverrideNotification><CallCenterOrSelfService>Customer</CallCenterOrSelfService><ImageType>PDF</ImageType></ExternalReturnLabelRequest>
>>>
>>> It errors out at the first <.  If I paste this minus the curl commands
>>> directly into the rest client, it works fine.  I just need help formatting
>>> this so the curl can handle it.
>>>
>>>
>>> Please help.  Any assistance would be appreciated!
>>>
>>>
>>> Put the entirety of the URL in quotes. The shell is interpreting that
>>> first < as a redirect.
>>> -------------------------------------------------------------------
>>> Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
>>> Etiquette:   https://curl.haxx.se/mail/etiquette.html
>>
>> -------------------------------------------------------------------
>> Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
>> Etiquette:   https://curl.haxx.se/mail/etiquette.html
>
>
>
> --
> test signature -- please apply at front gate on Tuesdays only.
>


-- 
test signature -- please apply at front gate on Tuesdays only.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to