Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Curl from Postman

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Curl from Postman

    Hi everyone, I have a cURL that can be run in postman however when I put it into the CURL genie it doesnt work. Am i just on too old of a version or do i need to change the cURL

    Here is the cURL
    Code:
    curl -X POST \
      'https://aeradminapi.aeris.com/AerAdmin_WS_5_0/rest/devices/provision?apiKey=45aa3995-603f-11e8-b361-a50b98c88xxx' \
      -H 'Content-Type: application/json' \
      -H 'cache-control: no-cache' \
      -d '{
        "accountID": "32711",
        "email": "[email protected]",
        "productId": 28,
        "applicationType": "M",
        "startBilling": false,
        "deviceName": "cwc test device",
        "customAttributes": [{
        "attributeName": "customField1",
        "attributeValue": "Add"
        }],
        "accessProfiles": [{
            "technology": "LTE",
            "ICCID": "89011702272022817800",
            "ratePlan": "ENSURITY_MOBILE_5MB",
            "serviceProfile": "ENS_ALH1"
        }],
        "provisionProfile": {
            "reportGroup": 0
        }
    }
    
    
    
    
    '
    I have also installed GIT so that I could run the cURL through that but it seems like way more work to get that working.
    Chad Brown

    #2
    Re: Curl from Postman

    This is what I get (it took 30 seconds or so to create it)

    Code:
    dim cf_1 as extension::CurlFile
    dim cf_2 as extension::CurlFile
    dim cf_3 as extension::CurlFile
    dim cf_4 as extension::CurlFile
    dim cf_5 as extension::CurlFile
    dim cf_6 as extension::CurlFile
    dim cf_7 as extension::CurlFile
    dim cf_8 as extension::CurlFile
    dim cf_9 as extension::CurlFile
    dim cf_10 as extension::CurlFile
    dim cf_11 as extension::CurlFile
    dim cf_12 as extension::CurlFile
    dim cf_13 as extension::CurlFile
    dim cf_14 as extension::CurlFile
    dim cf_15 as extension::CurlFile
    dim cf_16 as extension::CurlFile
    dim cf_17 as extension::CurlFile
    dim cf_18 as extension::CurlFile
    dim cf_19 as extension::CurlFile
    dim cf_20 as extension::CurlFile
    dim cf_21 as extension::CurlFile
    dim cf_22 as extension::CurlFile
    dim cf_23 as extension::CurlFile
    dim cf_24 as extension::CurlFile
    dim cf_25 as extension::CurlFile
    dim cf_26 as extension::CurlFile
    dim cf_27 as extension::CurlFile
    dim cf_28 as extension::CurlFile
    dim cf_29 as extension::CurlFile
    dim cf_30 as extension::CurlFile
    dim flag_1 as l
    dim flag_2 as l
    dim flag_3 as l
    dim flag_4 as l
    dim flag_5 as l
    dim flag_6 as l
    dim flag_7 as l
    dim flag_8 as l
    dim flag_9 as l
    dim flag_10 as l
    dim flag_11 as l
    dim flag_12 as l
    dim flag_13 as l
    dim flag_14 as l
    dim flag_15 as l
    dim flag_16 as l
    dim flag_17 as l
    dim flag_18 as l
    dim flag_19 as l
    dim flag_20 as l
    dim flag_21 as l
    dim flag_22 as l
    dim flag_23 as l
    dim flag_24 as l
    dim flag_25 as l
    dim flag_26 as l
    dim flag_27 as l
    dim flag_28 as l
    dim flag_29 as l
    dim flag_30 as l
    dim slist1[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist2[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist3[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist4[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist5[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist6[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist7[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist8[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist9[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist10[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist11[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist12[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist13[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist14[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist15[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist16[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist17[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist18[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist19[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist20[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist21[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist22[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist23[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist24[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist25[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist26[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist27[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist28[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist29[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim slist30[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
    dim ce as extension::Curl
    
    ce = extension::Curl.Init()
    ce.setOpt("URL","https://aeradminapi.aeris.com/AerAdmin_WS_5_0/rest/devices/provision?apiKey=45aa3995-603f-11e8-b361-a50b98c88xxx")
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist1)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_1)
    flag_1 = ce.Exec()
    ce.setOpt("URL","accountID:")
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist2)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_2)
    flag_2 = ce.Exec()
    ce.setOpt("URL",<<%txt%
    32711,
    %txt%)
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist3)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_3)
    flag_3 = ce.Exec()
    ce.setOpt("URL","email:")
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist4)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_4)
    flag_4 = ce.Exec()
    ce.setOpt("URL",<<%txt%
    [email protected],
    %txt%)
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist5)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_5)
    flag_5 = ce.Exec()
    ce.setOpt("URL","productId:")
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist6)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_6)
    flag_6 = ce.Exec()
    ce.setOpt("URL",<<%txt%
    28,
    %txt%)
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist7)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_7)
    flag_7 = ce.Exec()
    ce.setOpt("URL","applicationType:")
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist8)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_8)
    flag_8 = ce.Exec()
    ce.setOpt("URL",<<%txt%
    M,
    %txt%)
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist9)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_9)
    flag_9 = ce.Exec()
    ce.setOpt("URL","startBilling:")
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist10)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_10)
    flag_10 = ce.Exec()
    ce.setOpt("URL",<<%txt%
    false,
    %txt%)
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist11)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_11)
    flag_11 = ce.Exec()
    ce.setOpt("URL","deviceName:")
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist12)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_12)
    flag_12 = ce.Exec()
    ce.setOpt("URL",<<%txt%
    cwc test device,
    %txt%)
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist13)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_13)
    flag_13 = ce.Exec()
    ce.setOpt("URL","customAttributes:")
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist14)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_14)
    flag_14 = ce.Exec()
    ce.setOpt("URL","attributeName:")
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist15)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_15)
    flag_15 = ce.Exec()
    ce.setOpt("URL",<<%txt%
    customField1,
    %txt%)
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist16)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_16)
    flag_16 = ce.Exec()
    ce.setOpt("URL","attributeValue:")
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist17)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_17)
    flag_17 = ce.Exec()
    ce.setOpt("URL",<<%txt%
    Add
    %txt%)
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist18)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_18)
    flag_18 = ce.Exec()
    ce.setOpt("URL","accessProfiles:")
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist19)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_19)
    flag_19 = ce.Exec()
    ce.setOpt("URL","technology:")
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist20)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_20)
    flag_20 = ce.Exec()
    ce.setOpt("URL",<<%txt%
    LTE,
    %txt%)
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist21)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_21)
    flag_21 = ce.Exec()
    ce.setOpt("URL","ICCID:")
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist22)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_22)
    flag_22 = ce.Exec()
    ce.setOpt("URL",<<%txt%
    89011702272022817800,
    %txt%)
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist23)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_23)
    flag_23 = ce.Exec()
    ce.setOpt("URL","ratePlan:")
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist24)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_24)
    flag_24 = ce.Exec()
    ce.setOpt("URL",<<%txt%
    ENSURITY_MOBILE_5MB,
    %txt%)
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist25)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_25)
    flag_25 = ce.Exec()
    ce.setOpt("URL","serviceProfile:")
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist26)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_26)
    flag_26 = ce.Exec()
    ce.setOpt("URL",<<%txt%
    ENS_ALH1
    %txt%)
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist27)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_27)
    flag_27 = ce.Exec()
    ce.setOpt("URL","provisionProfile:")
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist28)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_28)
    flag_28 = ce.Exec()
    ce.setOpt("URL","reportGroup:")
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist29)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_29)
    flag_29 = ce.Exec()
    ce.setOpt("URL","0")
    ce.setOpt("NOPROGRESS",1)
    dim posted_fields as c = (<<%txt%
    '{
    %txt%)
    ce.setOpt("POSTFIELDS",posted_fields)
    ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) )
    ce.setOpt("USERAGENT","curl/7.34.0")
    ce.setOpt("HTTPHEADER",slist30)
    ce.setOpt("MAXREDIRS",50)
    ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
    ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
    'ce.setOpt("SSH_KNOWNHOSTS","C:\Users\Adam\AppData\Roaming/_ssh/known_hosts")
    ce.setOpt("CUSTOMREQUEST","POST")
    ce.setOpt("TCP_KEEPALIVE",1)
    ce.SetOpt("FILE",cf_30)
    flag_30 = ce.Exec()
    if flag_1 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_2 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_3 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_4 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_5 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_6 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_7 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_8 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_9 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_10 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_11 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_12 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_13 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_14 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_15 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_16 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_17 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_18 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_19 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_20 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_21 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_22 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_23 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_24 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_25 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_26 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_27 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_28 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_29 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    if flag_30 then
    
        dim headers as c
    	dim contents as c
    	headers = cf_1.GetHeaders()
    	contents = cf_1.GetContent()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	dim msg as c
    	msg = "Headers: " + crlf() + headers + crlf() + "Content: " + contents
    	showvar( msg)
    
    
    else
    	dim errors as c
    	errors = ce.error()
    
    	'BE SURE TO COMMENT OUT THIS CODE IN A WEB APPLICATION AS showVar() CANNOT BE USED IN WEB APPLICATIONS
    	showvar("error: " + errors)
    end if
    ce.close()

    Comment


      #3
      Re: Curl from Postman

      You don't say what version you are using for anyone to determine if it is too old.

      Comment


        #4
        Re: Curl from Postman

        Seems to me that curl has but together better code optimization than xbasic.

        Comment


          #5
          Re: Curl from Postman

          Some kind of recursive error is happening in generating the Xbasic from the cURL. Should only be generating 1 flag, not 30 of them.

          Comment


            #6
            Re: Curl from Postman

            Yes, I had to clean it up a bunch. I am guessing then it wasnt my older version if its happened to you as well.
            Chad Brown

            Comment


              #7
              Re: Curl from Postman

              Here is the fixed up code
              Code:
              dim cf_1 as extension::CurlFile
              
              dim flag_1 as l
              
              dim slist1[0] as c = [ "Content-Type: application/json" , "cache-control: no-cache" ]
              dim ce as extension::Curl
              
              ce = extension::Curl.Init()
              ce.setOpt("URL","https://aeradminapi.aeris.com/AerAdmin_WS_5_0/rest/devices/provision?apiKey=45aa3995-603f-11e8-b361-a50b98c88xxx")
              ce.setOpt("NOPROGRESS",1)
              ce.setOpt("POSTFIELDS",<<%txt%
              {
                  "accountID": "32711",
                  "email": "[email protected]",
                  "productId": 28,
                  "applicationType": "M",
                  "startBilling": false,
                  "deviceName": "cwc test device",
                  "customAttributes": [{
                  "attributeName": "customField1",
                  "attributeValue": "Add"
                  }],
                  "accessProfiles": [{
                      "technology": "LTE",
                      "ICCID": "89011702272022817xxx",
                      "ratePlan": "ENSURITY_MOBILE_5MB",
                      "serviceProfile": "ENS_ALH1"
                  }],
                  "provisionProfile": {
                      "reportGroup": 0
                  }
              }
              %txt%)
              ce.setOpt("POSTFIELDSIZE_LARGE",553)
              ce.setOpt("USERAGENT","curl/7.34.0")
              ce.setOpt("HTTPHEADER",slist1)
              ce.setOpt("MAXREDIRS",50)
              ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem")
              ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot")
              ce.setOpt("CUSTOMREQUEST","POST")
              ce.setOpt("TCP_KEEPALIVE",1)
              ce.SetOpt("FILE",cf_1)		
              flag_1 = ce.Exec()
              if flag_1 then
                   showvar( "Headers: "+crlf()+cf_1.GetHeaders()+crlf()+"Content:"+crlf()+cf_1.GetContent())
              else 
              	 showvar("error: " + ce.Error() )
              end if
              ce.close()
              Chad Brown

              Comment

              Working...
              X