Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8640003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:10:09+00:00 2026-06-12T11:10:09+00:00

I am developing an opt-in/opt-out API for Mobile numbers which can be placed at

  • 0

I am developing an opt-in/opt-out API for Mobile numbers which can be placed at the top of any website, so people can subscribe to receive an SMS to their mobile numbers.

I have the below script which basically post data between my PHP websites USING Curl which is working more than fine:

<?php

$url = "http://myserverurl.com/optin.php";
$postdata['customer_id'] = "1";
$postdata['mobilenumber'] = $_POST['mobilenumber'];

$useragent= "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" ;

$ch = curl_init();
//set some cookie details up (depending on the site)
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookies.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookies.txt");
curl_setopt($ch, CURLOPT_USERAGENT, $useragent); //set our user agent
curl_setopt($ch, CURLOPT_POST, 1); //set how many paramaters
curl_setopt($ch, CURLOPT_URL,$url); //set the url we want to use
curl_setopt($ch, CURLOPT_POSTFIELDS,$postdata); //set data to post


$result= curl_exec ($ch); //execute and get the results
curl_close ($ch);
//print $result; //display the reuslt

?>

How to apply this approach if the website is in ASP.net? Is there anything similar to Curl in ASP.net?

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T11:10:11+00:00Added an answer on June 12, 2026 at 11:10 am

    Take a look at WebRequest which will make most of it possible for you, but not line by line.

    Also, you COULD download curl and call it from your application (really not recommended when you have the option of WebRequest though… hehe)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Developing an app that people pay a monthly subscription to use. They can pay
When developing an application which consumes an external webservice I have generated the sources
Developing an iPad website I tried to use the CSS property overflow: auto to
I am developing a iPhone photo app in which there is one view, where
Developing In: c# winforms without any Database Connections Description: In my DataGridView, columns were
Developing mobile apps is a challenging job. Customers want to be present not only
Developing a web app which should enable users to organize the events on their
Developing an application, In which I have many user's account_id(skype id), Now what I
Developing a demo application. Error: Can not resolve properties under push tag. name and
Developing a mobile web app with: jquery 1.7.1 jquery-mobile 1.1.1 Rails 3.2.1 Here, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.