- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- General
- >
- Transfer of data using Curl in Binary or Ascii
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-02-2008 02:14 PM
12-02-2008 02:14 PM
Transfer of data using Curl in Binary or Ascii
could you please help how to send the data using cURL command in Binary or in Ascii format to remote server
Below is command format I am using to send data, when I send data the customer not able to view the data,
curl -E certificate:pwd -F "userid=usrname" -F "password=pwd" -F "filedata=@filename" https://host:port
could anyone help me
Thanks
- Tags:
- curl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-02-2008 02:30 PM
12-02-2008 02:30 PM
Re: Transfer of data using Curl in Binary or Ascii
What kind of file? What kind of data?
>>not able to view the data,
Can you be more descriptive? Is the data corrupted? Does the customer receive an error when he/she tries to open the file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-02-2008 02:46 PM
12-02-2008 02:46 PM
Re: Transfer of data using Curl in Binary or Ascii
same file when I send using windows, he can view the data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-02-2008 03:23 PM
12-02-2008 03:23 PM
Re: Transfer of data using Curl in Binary or Ascii
-B/--use-ascii
Enable ASCII transfer when using FTP or LDAP. For FTP, this can also be enforced by using an URL that ends with ";type=A".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-02-2008 04:39 PM
12-02-2008 04:39 PM
Re: Transfer of data using Curl in Binary or Ascii
I am using Https not FTP to send files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-02-2008 06:23 PM
12-02-2008 06:23 PM
Re: Transfer of data using Curl in Binary or Ascii
Ok, but without showing us what's in the file
before and after it's transferred, you may
need to find someone with psychic powers to
tell you what happened.
Other potentially interesting data:
cURL version
OS version
HTTPS server software description, version
OS where the HTTPS server is running
Can you transfer the file using a Web browser
instead of cURL, and does that change the
result?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-03-2008 04:26 AM
12-03-2008 04:26 AM
Re: Transfer of data using Curl in Binary or Ascii
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-03-2008 06:46 AM
12-03-2008 06:46 AM
Re: Transfer of data using Curl in Binary or Ascii
> or Ascii format using curl command
As mentioned earlier (so far as I know),
HTTPS does not have ASCII and binary modes.
> Other potentially interesting data:
> [...]
Still potentially interesting. Actual
information about the data in the files would
also still be useful. I could speculate on
what the (unknown) Web browser is doing
differently, but seeing actual data would
probably be more helpful than my guesswork.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-03-2008 06:53 AM
12-03-2008 06:53 AM
Re: Transfer of data using Curl in Binary or Ascii
I try like this
curl -E certificate:pwd -F "userid=usrname" -F "password=pwd" -F "filedata=@filename;type=A" https://host:port
but it is not working could you please suggest me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-03-2008 07:11 AM
12-03-2008 07:11 AM
Re: Transfer of data using Curl in Binary or Ascii
restating what you did (that didn't work) probably isn't going to be much assistance.
OSes involved, s/w versions and so on might be helpful. examples of what you mean by "can't read" (actual data / results).
you say it works from windows, but not from unix. is the destination windows? is this the ever-popular dos2ux / ux2dos line terminator issue? how would we know as you've provided almost no information
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP